Skip to content

Conversation

@jumcorredorro
Copy link
Contributor

  • 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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.
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@brunomichetti brunomichetti left a 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

@jumcorredorro jumcorredorro merged commit 535fd06 into master Jun 6, 2022
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 this pull request may close these issues.

4 participants