Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Zac-HD opened this issue May 20, 2024 · 4 comments

Comments

@Zac-HD
Copy link
Contributor

Zac-HD commented May 20, 2024

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.

@AlexWaygood
Copy link
Member

This should be already fixed in 4.12.0rc1! Could you try that and see if you get any errors? I think we're planning on cutting the release properly tomorrow if there are no bugs reported from people testing the release candidate

@AlexWaygood
Copy link
Member

AlexWaygood commented May 20, 2024

(This is a duplicate of #377 ;)

@JelleZijlstra
Copy link
Member

This should be already fixed in 4.12.0rc1! Could you try that and see if you get any errors? I think we're planning on cutting the release properly tomorrow if there are no bugs reported from people testing the release candidate

The new release should come out on Thursday, so a few more days than tomorrow.

@Zac-HD
Copy link
Contributor Author

Zac-HD commented May 20, 2024

Happy to confirm that the release candidate solves my issue. Thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants