This repository was archived by the owner on Apr 10, 2024. It is now read-only.
This repository was archived by the owner on Apr 10, 2024. It is now read-only.
Type annotations #18
Open
Description
Given that we seem to be on board with only supporting Python 3 (#5) in pandas 2.0, let's take full advantage of that and require type annotations for all internal pandas code. Users, of course, are free to ignore them as they please, but we can run mypy or pytype as part of our continguous integration tests to check for bugs.
Why?
- Static typing catches loads of bugs, both for us and our users
- Documenting types in code is far more reliable than in doc-strings
- Such a constraint would provide strong pressure for writing functions with sane type signatures
Quite simply, this is just good software engineering.