Skip to content

PEP-696: AttributeError: attribute '__default__' of 'typing.ParamSpec' objects is not writable on Python 3.13 #404

Closed
@Zac-HD

Description

@Zac-HD

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions