diff options
Diffstat (limited to 'sphinx/testing/path.py')
-rw-r--r-- | sphinx/testing/path.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/testing/path.py b/sphinx/testing/path.py index 8660e0a3c..105b786d5 100644 --- a/sphinx/testing/path.py +++ b/sphinx/testing/path.py @@ -1,10 +1,12 @@ from __future__ import annotations -import builtins import os import shutil import sys -from typing import IO, Any, Callable +from typing import IO, TYPE_CHECKING, Any, Callable + +if TYPE_CHECKING: + import builtins FILESYSTEMENCODING = sys.getfilesystemencoding() or sys.getdefaultencoding() |