fixed typing for help texts in application type

This commit is contained in:
Oliver Zander 2025-11-10 17:52:48 +01:00 committed by Tobias Herre
parent c0a98d09cd
commit 803c94137d
1 changed files with 2 additions and 2 deletions

View File

@ -85,13 +85,13 @@ class ApplicationType:
form_class: type[BaseApplicationForm] form_class: type[BaseApplicationForm]
link: str link: str
label: Optional[str] = None label: Optional[str] = None
help_texts: Optional[str] = None help_texts: Optional[dict] = None
def __post_init__(self): def __post_init__(self):
if self.label is None: if self.label is None:
self.label = TYPE_CHOICES[self.code] 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) self.help_texts = HELP_TEXTS.get(self.code)
@property @property