question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot use `tuple` and `list` in python 3.9

See original GitHub issue

Hi 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:closed
  • Created 10 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
brentyicommented, Nov 7, 2022

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?

0reactions
brentyicommented, Nov 7, 2022

Great!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found