diff --git a/src/trio/__init__.py b/src/trio/__init__.py index 38650a51f0..115211934c 100644 --- a/src/trio/__init__.py +++ b/src/trio/__init__.py @@ -2,6 +2,8 @@ """ from __future__ import annotations +from typing import TYPE_CHECKING + # General layout: # # trio/_core/... is the self-contained core library. It does various @@ -111,7 +113,6 @@ # Not imported by default, but mentioned here so static analysis tools like # pylint will know that it exists. -from typing import TYPE_CHECKING if TYPE_CHECKING: from . import testing