You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: Could not resolve type typing.Union in module <module 'tests.modules.withoptional' from '.../py2puml/tests/modules/withoptional.py'>: it needs to be imported explicitly.
It is because Optional[bool] is dynamically converted into Union[bool, None] without adding both typing.Union and typing.Nonetype in the module wrapped by the ModuleResolver.
The text was updated successfully, but these errors were encountered:
py2puml fails to inspect a dataclass using
Optional
as follows:It is because
Optional[bool]
is dynamically converted intoUnion[bool, None]
without adding bothtyping.Union
andtyping.Nonetype
in the module wrapped by the ModuleResolver.The text was updated successfully, but these errors were encountered: