File tree 2 files changed +2
-2
lines changed
tests/stubtest_allowlists 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ OPTIONAL: Literal["?"]
68
68
PARSER : Literal ["A..." ]
69
69
REMAINDER : Literal ["..." ]
70
70
_SUPPRESS_T = NewType ("_SUPPRESS_T" , str )
71
- SUPPRESS : _SUPPRESS_T # not using Literal because argparse sometimes compares SUPPRESS with is
71
+ SUPPRESS : _SUPPRESS_T | str # not using Literal because argparse sometimes compares SUPPRESS with is
72
+ # the | str is there so that foo = argparse.SUPPRESS; foo = "test" checks out in mypy
72
73
ZERO_OR_MORE : Literal ["*" ]
73
74
_UNRECOGNIZED_ARGS_ATTR : str # undocumented
74
75
Original file line number Diff line number Diff line change @@ -236,7 +236,6 @@ xml.parsers.expat.expat_CAPI
236
236
# Allowlist entries that cannot or should not be fixed
237
237
# ==========
238
238
_pydecimal.* # See comments in file
239
- argparse.SUPPRESS # See comment in file
240
239
ast.NodeVisitor.visit_\w+ # Methods are discovered dynamically, see #3796
241
240
# Weird special builtins that are typed as functions, but aren't functions
242
241
builtins.copyright
You can’t perform that action at this time.
0 commit comments