py-bson / bson

Independent BSON codec for Python that doesn't depend on MongoDB.
Other
444 stars 83 forks source link

Drop python 2 and add annotations #115

Open Kludex opened 2 years ago

Kludex commented 2 years ago

Are there thoughts on what the title proposes? I can open a PR for it, if wanted.

rabernat commented 2 years ago

Thanks for this great package.

The fact that it does not distribute typing stubs causes some problems for downstream packages that want to use static typing. The typical use case is around ObjectID -- see e.g. https://github.com/python/mypy/issues/6701#issue-435167066.

I strongly support the suggestions to add type annotations and also to distribute stub files as part of the package