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

Support type syntax from python3.12 #861

Open
iyakushev opened this issue Dec 27, 2024 · 3 comments · May be fixed by #772
Open

Support type syntax from python3.12 #861

iyakushev opened this issue Dec 27, 2024 · 3 comments · May be fixed by #772

Comments

@iyakushev
Copy link

It appears that on the latest version 24.11.1 the new "type alias" syntax type foo = bar introduced in Python3.12 is being ignored. The logs also doesn't show anything (even with -v option).

sample use case:

type MyVec[T] = list[T]
"""This simply binds MyVec -> list"""
@tristanlatr
Copy link
Contributor

tristanlatr commented Dec 27, 2024

Hello @iyakushev, thanks for the feature request. I’ve started an implementation in #772. Its not ready. I lack time to finalize it. Would you like to pick this up ?

@tristanlatr tristanlatr linked a pull request Dec 27, 2024 that will close this issue
@iyakushev
Copy link
Author

@tristanlatr Thanks, I'll give it a look!
But probably could begin work on it only in a week or so.

@tristanlatr
Copy link
Contributor

Your very welcome @iyakushev, there is no rush implementing this feature. It’s still a pretty new syntax. Dont hesitate to ping me if you have any question or comments. Talk to you later

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

Successfully merging a pull request may close this issue.

2 participants