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

pySCG: Python type hints and what they are for #713

Open
myteron opened this issue Dec 17, 2024 · 0 comments
Open

pySCG: Python type hints and what they are for #713

myteron opened this issue Dec 17, 2024 · 0 comments

Comments

@myteron
Copy link
Contributor

myteron commented Dec 17, 2024

Create a Python specific rule or recommendation around:

  • Type hints and what they are for. Python 3.9 does not even throw an INFO or warn when type hints don't match, it has to be clear that type hints are not a security or robustness feature.
  • Why type hints don't prevent implicit conversions
  • Why hints must be used in combination with a tool like mypy
  • Why or when mypy is unable to protect against issues on a deployed system.
    mypy != input sanitation or validation.
    Decide if its going to be a recommendation or rule after creating some content.

Avoid duplication with content in #712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant