File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 88import tempfile
99from pathlib import Path
1010from types import ModuleType
11- from typing import Optional
1211
1312from mypy import build
1413from mypy .errors import CompileError
2726)
2827from 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
3130try :
3231 import lxml
3332except ImportError :
Original file line number Diff line number Diff line change 1111import subprocess
1212import sys
1313from types import ModuleType
14- from typing import Optional
1514
1615from mypy .test .config import PREFIX , test_temp_dir
1716from mypy .test .data import DataDrivenTestCase , DataSuite
2120 normalize_error_messages ,
2221)
2322
24- lxml : Optional [ ModuleType ] # lxml is an optional dependency
23+ lxml : ModuleType | None # lxml is an optional dependency
2524try :
2625 import lxml
2726except ImportError :
Original file line number Diff line number Diff line change 44
55import textwrap
66from types import ModuleType
7- from typing import Optional
87
98from mypy .report import CoberturaPackage , get_line_rate
109from 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
1312try :
1413 import lxml
1514except ImportError :
You can’t perform that action at this time.
0 commit comments