Add mypy support (#396), thanks @JuroOravec

This commit is contained in:
Juro Oravec 2024-03-15 23:31:15 +01:00 committed by GitHub
parent 4090c928ee
commit b14dec9777
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 104 additions and 58 deletions

View file

@ -48,6 +48,10 @@ class VariableDisplay(component.Component):
class IncrementerComponent(component.Component):
template_name = "incrementer.html"
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.call_count = 0
def get_context_data(self, value=0):
value = int(value)
if hasattr(self, "call_count"):