mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use typing.TYPE_CHECKING
This commit is contained in:
parent
20e06a2a3d
commit
f51b644f39
@ -10,10 +10,10 @@
|
||||
"""
|
||||
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
|
||||
if False:
|
||||
# For type annotation
|
||||
if TYPE_CHECKING:
|
||||
from typing import Any, Dict # NOQA
|
||||
from sphinx.application import Sphinx # NOQA
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user