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
$ uv run python3.13
Python 3.13.3 (main, May 22 2025, 02:00:23) [Clang 20.1.4 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> class Foo(str): ...
...
... a = []
... new_value = Foo("1")
... a += new_value
...
Traceback (most recent call last):
File "<python-input-0>", line 5, in <module>
a += new_value
TypeError: must be str, not list
on the system version of python it works fine:
$ python3.13
Python 3.13.3 (main, Apr 9 2025, 08:55:03) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> class Foo(str): ...
...
... a = []
... new_value = Foo("1")
... a += new_value
...
>>>
but on windows it works fine even, with the uv-managed python version:
> uv run python
Python 3.13.3 (main, Apr 9 2025, 04:04:49) [MSC v.1943 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class Foo(str): ...
...
>>> a = []
>>> new_value = Foo("1")
>>> a += new_value
>>>
Platform
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 GNU/Linux
Version
0.7.7
Python version
3.13.3
scott-au, KotlinIsland, joshsleeper, muzimuzhi and chirizxcjoshsleeper and blussharshil21, geofft, jorenham and EDM115