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

Import typing Self Error #5149

Open
forex24 opened this issue Jan 13, 2024 · 0 comments
Open

Import typing Self Error #5149

forex24 opened this issue Jan 13, 2024 · 0 comments
Labels
C-compat A discrepancy between RustPython and CPython

Comments

@forex24
Copy link

forex24 commented Jan 13, 2024

python code:
from typing import Self

cpython run ok

rustpython output:
$ rustpython test.py
Traceback (most recent call last):
File "test.py", line 1, in
from typing import Self
ImportError: cannot import name 'Self'

python version:3.11.7
rustpython version:0.3.0

@forex24 forex24 added the C-compat A discrepancy between RustPython and CPython label Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-compat A discrepancy between RustPython and CPython
Projects
None yet
Development

No branches or pull requests

1 participant