Skip to content

Commit c5ccf26

Browse files
committed
Test overwrite options.use_or_syntax
1 parent 3618369 commit c5ccf26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/test/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ def parse_options(
358358
options.error_summary = False
359359
options.hide_error_codes = True
360360
options.force_union_syntax = True
361+
options.use_or_syntax = lambda: True
361362

362363
# Allow custom python version to override testfile_pyversion.
363364
if all(flag.split("=")[0] != "--python-version" for flag in flag_list):

0 commit comments

Comments
 (0)