-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: Add type hints #334
base: master
Are you sure you want to change the base?
feat: Add type hints #334
Conversation
@sloria took a stab at starting here... not sure how to even do all the typing here w/sqlalchemy, though |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on first glance. Will you be adding mypy?
probably not going to add mypy any time soon |
Here's a run with the mypy defaults diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3d8d20d..8461356 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -8,6 +8,10 @@ repos:
rev: v0.4.3
hooks:
- id: fourmat
+- repo: https://github.com/pre-commit/mirrors-mypy
+ rev: v0.770
+ hooks:
+ - id: mypy
- repo: https://github.com/asottile/blacken-docs
rev: v1.6.0
hooks:
|
from .utils import settable_property | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
||
TItem = TypeVar("TItem") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
geez generics are so terrible...
No description provided.