-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 types #2822
base: master
Are you sure you want to change the base?
Add types #2822
Conversation
…hecking" This reverts commit e510f0b.
@bagerard And now i need some guidance. How to best approach testing types? For start i just put some tests into 'tests/test_typing.yml`, but running these tests requires mypy and all optional dependencies. And that's probably will be slowest tests, due to mypy being not so fast.
If speed is a priority, we can put this into separate folder and run once on single python version. |
This PR adds types.
Partially, from https://github.com/sbdchd/mongo-types/ by @sbdchd
Partially, generated by monkeytype
Partially handwritten and generated by included
gen.py
script (i'll remove it before merging)I inlined most of the types, but fieds require lot of
@overload
s - so i put that into separate.pyi
.Note to self, check:
ReferenceField[Image]('Image')
)