MKuranowski / aiocsv

Python: Asynchronous CSV reading/writing
https://pypi.org/project/aiocsv/
MIT License
67 stars 9 forks source link

Export Readers and Writers in __init__.py #21

Closed tierriminator closed 9 months ago

tierriminator commented 9 months ago

Properly export the classes of this package. This allows static type checkers to know that the async Readers and Writers are actually visible exports of the package.

MKuranowski commented 9 months ago

I guess that's a mypy thing? I use pyright, and it has a special case - from .x import a in __init__.py reexports a (https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface)

tierriminator commented 9 months ago

Interesting. I also use pyright, but it failed for me when importing. Adding all resolved it.

MKuranowski commented 9 months ago

Hmm, weird.