Replies: 2 comments 12 replies
-
|
Adding support for this would require the addition of a
|
Beta Was this translation helpful? Give feedback.
-
|
Apart from the addition of a "Final" ("const") annotation, can you explain what this would add that the user couldn't achieve in pure Python? E.g: I am generally not a fan of handling things in annotations which can be done in pure Python as it leads to the generated code behaving differently to the original Python code. As a result even if we were to support syntax such as: I would expect it to raise a warning as a minimum to show that the results may not be as expected after testing in Python |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Adding type hints of variables will allow the user to have more control over the type inference process, allowing the user to add more information to the variable type.
For example:
Beta Was this translation helpful? Give feedback.
All reactions