On Python 3.13.0b1, with typing-extensions 4.11.0 (latest at time of writing), I get an error:
Traceback (most recent call last):
...
File "hypothesis/hypothesis-python/tests/typing_extensions/test_backported_types.py", line 187, in test_callable_with_paramspec
P = ParamSpec("P")
File "python3.13/site-packages/typing_extensions.py", line 1512, in __new__
_set_default(paramspec, default)
File "python3.13/site-packages/typing_extensions.py", line 1375, in _set_default
type_param.__default__ = None
AttributeError: attribute '__default__' of 'typing.ParamSpec' objects is not writable
This looks like a bug, maybe related to #396.
On Python 3.13.0b1, with typing-extensions 4.11.0 (latest at time of writing), I get an error:
Traceback (most recent call last): ... File "hypothesis/hypothesis-python/tests/typing_extensions/test_backported_types.py", line 187, in test_callable_with_paramspec P = ParamSpec("P") File "python3.13/site-packages/typing_extensions.py", line 1512, in __new__ _set_default(paramspec, default) File "python3.13/site-packages/typing_extensions.py", line 1375, in _set_default type_param.__default__ = None AttributeError: attribute '__default__' of 'typing.ParamSpec' objects is not writableThis looks like a bug, maybe related to #396.