Skip to content

Commit c2c5a06

Browse files
unsafe-fixes
1 parent 65a3254 commit c2c5a06

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

mypy/test/testcheck.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import tempfile
99
from pathlib import Path
1010
from types import ModuleType
11-
from typing import Optional
1211

1312
from mypy import build
1413
from mypy.errors import CompileError
@@ -27,7 +26,7 @@
2726
)
2827
from mypy.test.update_data import update_testcase_output
2928

30-
lxml: Optional[ModuleType] # lxml is an optional dependency
29+
lxml: ModuleType | None # lxml is an optional dependency
3130
try:
3231
import lxml
3332
except ImportError:

mypy/test/testcmdline.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import subprocess
1212
import sys
1313
from types import ModuleType
14-
from typing import Optional
1514

1615
from mypy.test.config import PREFIX, test_temp_dir
1716
from mypy.test.data import DataDrivenTestCase, DataSuite
@@ -21,7 +20,7 @@
2120
normalize_error_messages,
2221
)
2322

24-
lxml: Optional[ModuleType] # lxml is an optional dependency
23+
lxml: ModuleType | None # lxml is an optional dependency
2524
try:
2625
import lxml
2726
except ImportError:

mypy/test/testreports.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44

55
import textwrap
66
from types import ModuleType
7-
from typing import Optional
87

98
from mypy.report import CoberturaPackage, get_line_rate
109
from mypy.test.helpers import Suite, assert_equal
1110

12-
lxml: Optional[ModuleType] # lxml is an optional dependency
11+
lxml: ModuleType | None # lxml is an optional dependency
1312
try:
1413
import lxml
1514
except ImportError:

0 commit comments

Comments
 (0)