We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ca9662 + 379d9ce commit 1c6a6a8Copy full SHA for 1c6a6a8
newsfragments/3186.misc.rst
@@ -0,0 +1 @@
1
+Publicly re-export ``__version__`` for type checking purposes.
src/trio/__init__.py
@@ -104,10 +104,7 @@
104
sleep_forever as sleep_forever,
105
sleep_until as sleep_until,
106
)
107
-
108
-# pyright explicitly does not care about `__version__`
109
-# see https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#type-completeness
110
-from ._version import __version__
+from ._version import __version__ as __version__
111
112
# Not imported by default, but mentioned here so static analysis tools like
113
# pylint will know that it exists.
0 commit comments