Skip to content

Commit 8714565

Browse files
committed
Move another import into type-checking block
1 parent 0b62dcb commit 8714565

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
import inspect
1212
import sys
1313
import warnings
14-
from pathlib import Path
15-
from typing import Any, Iterable, Optional
14+
from typing import Any, Iterable, Optional, TYPE_CHECKING
1615

1716
import pytest
1817
from _pytest.doctest import (
@@ -32,6 +31,9 @@
3231
)
3332
from sage.doctest.parsing import SageDocTestParser, SageOutputChecker
3433

34+
if TYPE_CHECKING:
35+
from pathlib import Path
36+
3537

3638
class SageDoctestModule(DoctestModule):
3739
"""

0 commit comments

Comments
 (0)