File tree Expand file tree Collapse file tree
tests/stubtest_allowlists Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ OPTIONAL: Literal["?"]
6868PARSER : Literal ["A..." ]
6969REMAINDER : Literal ["..." ]
7070_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
7273ZERO_OR_MORE : Literal ["*" ]
7374_UNRECOGNIZED_ARGS_ATTR : str # undocumented
7475
Original file line number Diff line number Diff line change @@ -236,7 +236,6 @@ xml.parsers.expat.expat_CAPI
236236# Allowlist entries that cannot or should not be fixed
237237# ==========
238238_pydecimal.* # See comments in file
239- argparse.SUPPRESS # See comment in file
240239ast.NodeVisitor.visit_\w+ # Methods are discovered dynamically, see #3796
241240# Weird special builtins that are typed as functions, but aren't functions
242241builtins.copyright
You can’t perform that action at this time.
0 commit comments