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
When running the above example (> python example.py --teams t1 --teams t2), I get RuntimeError: Type not yet supported: frozenset[__main__.Team], while it works when I replace frozenset with list: teams=[<Team.team1: 't1'>, <Team.team2: 't2'>].
I expect set and frozenset to work in a similar manner to list.
Operating System
macOS
Operating System Details
No response
Typer Version
0.12.3
Python Version
Python 3.10.8
Additional Context
I can try and make a PR if it's an acceptable feature-request.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
When running the above example (
> python example.py --teams t1 --teams t2
), I getRuntimeError: Type not yet supported: frozenset[__main__.Team]
, while it works when I replacefrozenset
withlist
:teams=[<Team.team1: 't1'>, <Team.team2: 't2'>]
.I expect
set
andfrozenset
to work in a similar manner tolist
.Operating System
macOS
Operating System Details
No response
Typer Version
0.12.3
Python Version
Python 3.10.8
Additional Context
I can try and make a PR if it's an acceptable feature-request.
Beta Was this translation helpful? Give feedback.
All reactions