better type checking during deprecation
This commit is contained in:
parent
c7c8dc38ea
commit
7d5d187458
1 changed files with 14 additions and 13 deletions
|
|
@ -42,8 +42,9 @@ from .templating import stream_template_string as stream_template_string
|
||||||
from .wrappers import Request as Request
|
from .wrappers import Request as Request
|
||||||
from .wrappers import Response as Response
|
from .wrappers import Response as Response
|
||||||
|
|
||||||
|
if not t.TYPE_CHECKING:
|
||||||
|
|
||||||
def __getattr__(name: str) -> t.Any:
|
def __getattr__(name: str) -> t.Any:
|
||||||
if name == "__version__":
|
if name == "__version__":
|
||||||
import importlib.metadata
|
import importlib.metadata
|
||||||
import warnings
|
import warnings
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue