Hochfrequenz / mig_ahb_utility_stack

MIG AHB Utility Stack (MAUS): A Script to Match the Message Implementation Guide (MIG) with the Anwendungshandbuch (AHB)
MIT License
2 stars 0 forks source link

What's the problem with validator.optional and a default string? #221

Open hf-kklein opened 1 year ago

hf-kklein commented 1 year ago

src\maus\models\anwendungshandbuch.py:156: error: Argument "validator" to "field" has incompatible type "Callable[[Any, Attribute[Optional[str]], Optional[str]], Any]"; expected "Union[Callable[[Any, Attribute[str], str], Any], Sequence[Callable[[Any, Attribute[str], str], Any]], None]" [arg-type]