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

Type hints #23

Open
chrhck opened this issue Mar 21, 2020 · 1 comment
Open

Type hints #23

chrhck opened this issue Mar 21, 2020 · 1 comment
Labels
code style Improvements related to code style

Comments

@chrhck
Copy link
Collaborator

chrhck commented Mar 21, 2020

Type hints ( https://docs.python.org/3/library/typing.html ) are useful for discovering runtime bugs while coding. I propose we use type hints for new code when possible.
Note that there is experimental support for numpy as well ( https://github.com/numpy/numpy-stubs )

@chrhck chrhck added the code style Improvements related to code style label Mar 21, 2020
@martwo
Copy link
Collaborator

martwo commented Apr 14, 2023

Type hints might be a good idea for newer Python versions, where the syntax of type hints has been simplified, esp. where multiple types are allowed for a variable.

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

No branches or pull requests

2 participants