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
I don't have a minimum reproducible example yet. I don't think it'll be hard to produce but wanted to get something written down. When annotating an argument with "Optional[Dict] = None", I get an error from issubclass in this line:
Describe the bug
I don't have a minimum reproducible example yet. I don't think it'll be hard to produce but wanted to get something written down. When annotating an argument with "Optional[Dict] = None", I get an error from issubclass in this line:
https://github.com/napari/magicgui/blob/481f665af1992c0c99eabe4d608e1d0b6da78e54/magicgui/type_map.py#L85-L86
It tries to evaluate
issubclass(typing.Dict, type(None))
, which fails with:Changing the annotation to
Optional[dict]
(no typing) bypasses the error.Environment:
The text was updated successfully, but these errors were encountered: