-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Bug: Using "PEP 563 – Postponed Evaluation of Annotations" in dataclasses produces error with version code. #1863
Comments
Found the relevant issue and the solution!
|
if you need to access the package's version, there's |
@funkyfuture Sorry, I don't really understand what you mean. |
i mean that you can express the package's version statically in the |
I understand now, thank you. But I want to have a dynamic versioning system which is why I'm using the version source feature of hatchling, but then I encountered the bug. |
And the
src/ml_project/_version.py
or, use constant string for lazy type evaluation
Produces error:
The text was updated successfully, but these errors were encountered: