Skip to content

[Feature]: Support for Python 3.13 #992

Closed
@stoobmmelier

Description

@stoobmmelier

Suggested Behavior

Hello there, I was wondering if this library supports Python 3.13 yet? The README says it does, but the GitHub Actions pipeline doesn't have a test for 3.13 yet

When I try to use Python 3.13, the library has a typing error inside jsonschema_path:

| my-app/app/file.py:7: in <module>
|     from jsonschema_path import SchemaPath
| /root/.cache/pypoetry/virtualenvs/my-app-TgmRXocL-py3.13/lib/python3.13/site-packages/jsonschema_path/__init__.py:1: in <module>
|     from jsonschema_path.accessors import SchemaAccessor
| /root/.cache/pypoetry/virtualenvs/my-app-TgmRXocL-py3.13/lib/python3.13/site-packages/jsonschema_path/accessors.py:14: in <module>
|     from referencing import Registry
| /root/.cache/pypoetry/virtualenvs/my-app-TgmRXocL-py3.13/lib/python3.13/site-packages/referencing/__init__.py:5: in <module>
|     from referencing._core import Anchor, Registry, Resource, Specification
| /root/.cache/pypoetry/virtualenvs/my-app-TgmRXocL-py3.13/lib/python3.13/site-packages/referencing/_core.py:18: in <module>
|     from referencing.typing import URI, Anchor as AnchorType, D, Mapping, Retrieve
| /root/.cache/pypoetry/virtualenvs/my-app-TgmRXocL-py3.13/lib/python3.13/site-packages/referencing/typing.py:22: in <module>
|     D = TypeVar("D", default=Any)
| /root/.cache/pypoetry/virtualenvs/my-app-TgmRXocL-py3.13/lib/python3.13/site-packages/typing_extensions.py:1418: in __new__
|     _set_default(typevar, default)
| /root/.cache/pypoetry/virtualenvs/my-app-TgmRXocL-py3.13/lib/python3.13/site-packages/typing_extensions.py:1373: in _set_default
|     type_param.__default__ = typing._type_check(default, "Default must be a type")
| E   AttributeError: attribute '__default__' of 'typing.TypeVar' objects is not writable

Thank you

Why is this needed?

Python 3.13 was released October 2024

References

No response

Would you like to implement a feature?

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions