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
|
import sys
|
||||||
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
|
|
||||||
if False:
|
if TYPE_CHECKING:
|
||||||
# For type annotation
|
|
||||||
from typing import Any, Dict # NOQA
|
from typing import Any, Dict # NOQA
|
||||||
from sphinx.application import Sphinx # NOQA
|
from sphinx.application import Sphinx # NOQA
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user