Skip to content

[Feature Request] @beartype β‰₯ 0.21 + Python β‰₯ 3.13 support πŸ’ͺΒ #5

@leycec

Description

@leycec

As @ntjohnson1 astutely noted at #4, ipython-beartype currently fails to support @beartype β‰₯ 0.21 and thus Python β‰₯ 3.13. This is awful. Thankfully, the solution is likely to be trivial:

# This dangerous privacy-violating import in the `ipython_beartype.__init__` submodule:
from beartype._conf.confcls import BeartypeConf

# ...should instead be changed to this safe privacy-preserving import:
from beartype import BeartypeConf

@ntjohnson1: Would you like to go ahead and add that improvement to your grab-bag of awesome fixes at #4? If so, we can then also:

  • Unpin @beartype. πŸ₯³
  • Explicitly add Python 3.12 and 3.13 to the CI test matrix: e.g.,
# In ".github/workflows/tox.yaml":
- { python-version: "3.12", tox-env: "py312" }
- { python-version: "3.13", tox-env: "py313" }
# In "tox.ini":
envlist = py{39,310,311,312,312,313,313-type}

That should do it, I think? Thanks so much for all your tremendous efforts. You rock! 🀘

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions