Skip to content
New issue

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

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

Already on GitHub? # to your account

Python 3.9 is no longer supported #269

Closed
pierreguilmin opened this issue Nov 18, 2024 · 2 comments · Fixed by #270
Closed

Python 3.9 is no longer supported #269

pierreguilmin opened this issue Nov 18, 2024 · 2 comments · Fixed by #270

Comments

@pierreguilmin
Copy link

On a fresh Python 3.9.20 install I get the following error:

>>> import jaxtyping
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../.venv/lib/python3.9/site-packages/jaxtyping/__init__.py", line 35, in <module>
    from ._decorator import jaxtyped as jaxtyped
  File ".../.venv/lib/python3.9/site-packages/jaxtyping/_decorator.py", line 29, in <module>
    from typing import (
ImportError: cannot import name 'ParamSpec' from 'typing' (.../uv/python/cpython-3.9.20-macos-aarch64-none/lib/python3.9/typing.py)
@patrick-kidger
Copy link
Owner

Ah! Thanks for the report.I'd be happy to take a PR that gates that behind an if TYPE_CHECKING block.

@baluyotraf
Copy link
Contributor

baluyotraf commented Nov 18, 2024

Hello. I also just encountered this issue. It think it would be nice to fix it using the typing_extensions backport instead. I can make a PR for it if you're cool with that.

Edit: I made the PR, feel free to merge it or ignore it.

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

Successfully merging a pull request may close this issue.

3 participants