Cannot use `tuple` and `list` in python 3.9
See original GitHub issueHi all,
I have a problem when using the new tuple
and list
type annotation with tyro. It gives me the following error:
AttributeError: type object 'tuple' has no attribute 'copy_with'
The code runs fine with Tuple
and List
.
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Using List/Tuple/etc. from typing vs directly referring type as ...
describes a variable-length tuple with float s. For typing. List and other sequence types you generally only specify the type for all elements; ......
Read more >5. Data Structures — Python 3.11.1 documentation
It is not possible to assign to the individual items of a tuple, however it is possible to create tuples which contain mutable...
Read more >Python Return Multiple Values – How to Return a Tuple, List ...
Use a tuple, for example, to store information about a person: their name, age, and location.
Read more >Tuple Python with Example - Tuts Make
If you have created a tuple list in Python once. You cannot add items to it. You may have found that tuple is...
Read more >3. Strings, lists, and tuples — Beginning Python Programming ...
In the case of lists or tuples, they are made up of elements, which are values of any Python datatype, including other lists...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah – seems like we were only catching this for Python 3.10, and not 3.9. I just pushed a fix + release.
Thanks for flagging, do you mind upgrading and checking one more time?
Great!