better type checking during deprecation (#5700)
This commit is contained in:
commit
315ebc1176
1 changed files with 14 additions and 13 deletions
|
|
@ -42,6 +42,7 @@ 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__":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue