forked from beba/foerderbarometer
fixed typing for help texts in application type
This commit is contained in:
parent
c0a98d09cd
commit
803c94137d
|
|
@ -85,13 +85,13 @@ class ApplicationType:
|
|||
form_class: type[BaseApplicationForm]
|
||||
link: str
|
||||
label: Optional[str] = None
|
||||
help_texts: Optional[str] = None
|
||||
help_texts: Optional[dict] = None
|
||||
|
||||
def __post_init__(self):
|
||||
if self.label is None:
|
||||
self.label = TYPE_CHOICES[self.code]
|
||||
|
||||
if self.help_texts is None:
|
||||
if self.help_texts is None: # pragma: no branch
|
||||
self.help_texts = HELP_TEXTS.get(self.code)
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Reference in New Issue