There was an error while loading. Please reload this page.
1 parent 7e53887 commit 2fc6315Copy full SHA for 2fc6315
pdoc/cli.py
@@ -11,6 +11,7 @@
11
import re
12
import subprocess
13
import sys
14
+import typing
15
import warnings
16
from contextlib import contextmanager
17
from functools import lru_cache
@@ -453,6 +454,8 @@ def main(_args=None):
453
454
global args
455
args = _args or parser.parse_args()
456
457
+ typing.TYPE_CHECKING = True # type: ignore # Set this for subsequent module imports
458
+
459
# If warnings not externally managed, show deprecation warnings
460
if not sys.warnoptions:
461
warnings.simplefilter("once", DeprecationWarning)
0 commit comments