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

Add type hints for type safety #787

Open
sadielbartholomew opened this issue Jun 18, 2024 · 0 comments
Open

Add type hints for type safety #787

sadielbartholomew opened this issue Jun 18, 2024 · 0 comments
Labels
code tidy enhancement New feature or request testing Issues related to units tests and their coverage

Comments

@sadielbartholomew
Copy link
Member

Add type hints across the codebase. They are valid syntax for Python v..3.5+, so are safe to add given we are now 3.7+.

We can then use type checking tools, such as mypy, to ensure robustness of our code and catch bugs relating to errors due to incorrect types.

See #785 (comment) for brief further discussion.

@sadielbartholomew sadielbartholomew added enhancement New feature or request code tidy testing Issues related to units tests and their coverage labels Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code tidy enhancement New feature or request testing Issues related to units tests and their coverage
Projects
None yet
Development

No branches or pull requests

1 participant