diff --git a/newsfragments/14.misc.rst b/newsfragments/14.misc.rst new file mode 100644 index 0000000..56fdfed --- /dev/null +++ b/newsfragments/14.misc.rst @@ -0,0 +1,3 @@ +tricycle now explicitly re-exports all names, improving PEP-561 compliance and +allowing type checkers that enforce export strictness (including mypy with +``--no-implicit-reexport``) to check code using tricycle diff --git a/tricycle/__init__.py b/tricycle/__init__.py index 7e0b0fe..9d9f601 100644 --- a/tricycle/__init__.py +++ b/tricycle/__init__.py @@ -1,10 +1,13 @@ from ._version import __version__ -from ._rwlock import RWLock -from ._streams import BufferedReceiveStream, TextReceiveStream -from ._multi_cancel import MultiCancelScope -from ._service_nursery import open_service_nursery -from ._meta import ScopedObject, BackgroundObject +from ._rwlock import RWLock as RWLock +from ._streams import ( + BufferedReceiveStream as BufferedReceiveStream, + TextReceiveStream as TextReceiveStream, +) +from ._multi_cancel import MultiCancelScope as MultiCancelScope +from ._service_nursery import open_service_nursery as open_service_nursery +from ._meta import ScopedObject as ScopedObject, BackgroundObject as BackgroundObject # watch this space...