-
Notifications
You must be signed in to change notification settings - Fork 11
Add typing hints documentation to python readme #70
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
Conversation
jumcorredorro
commented
Jun 1, 2022
- Add typing hints documentation to Python README. Some examples and pros, cons items.
python/README.md
Outdated
|
|
||
| ### Cons of typing hints | ||
|
|
||
| * Will take developer time and effort to add. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Will take developer time and effort to add. | |
| * Will take developer time and effort to add it. |
python/README.md
Outdated
| ### Cons of typing hints | ||
|
|
||
| * Will take developer time and effort to add. | ||
| * Work best in modern versions of Python. Python 2.7 could use typed comments, but it were introduced since Python 3.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Work best in modern versions of Python. Python 2.7 could use typed comments, but it were introduced since Python 3.0. | |
| * Work best in modern versions of Python. Python 2.7 could use typed comments, but it was introduced in Python 3.0. |
|
|
||
| ### Typing: please remember | ||
|
|
||
| This typing concepts does not mean you HAVE to use static type checking in your code, there is a concept call [Gradual typing in PEP 483](https://peps.python.org/pep-0483/#summary-of-gradual-typing). This means that you can gradually introduce types into the code. Code without type hints will be ignored by the static type checker. Therefore, you can start adding types to critical components. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the # in the URL causing issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it doesn't cause any issues, I think is the formatting here.
brunomichetti
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the rules we discussed with Jorge?
The rules of where/when to use typing