File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -819,6 +819,7 @@ def add_invertible_flag(
819819 add_invertible_flag (
820820 "--force-uppercase-builtins" , default = False , help = argparse .SUPPRESS , group = none_group
821821 )
822+
822823 # This flag is deprecated, Mypy only supports Python 3.10+
823824 add_invertible_flag (
824825 "--force-union-syntax" , default = False , help = argparse .SUPPRESS , group = none_group
@@ -1544,6 +1545,9 @@ def set_strict_flags() -> None:
15441545 if options .force_uppercase_builtins :
15451546 print ("Warning: --force-uppercase-builtins is deprecated; mypy only supports Python 3.9+" )
15461547
1548+ if options .force_union_syntax :
1549+ print ("Warning: --force-union-syntax is deprecated; mypy only supports Python 3.10+" )
1550+
15471551 # Set target.
15481552 if special_opts .modules + special_opts .packages :
15491553 options .build_type = BuildType .MODULE
You can’t perform that action at this time.
0 commit comments