mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 19:11:26 +08:00
Use Final for undocumented constants (#12450)
This commit is contained in:
1 parent
1f4d0a815f
commit
9a77f6006d
10 files changed
+60
-61
No files matched your search
+1
-1
@@ -51,7 +51,7 @@ _SUPPRESS_T = NewType("_SUPPRESS_T", str)
|
||||
SUPPRESS: _SUPPRESS_T | str # not using Literal because argparse sometimes compares SUPPRESS with is
|
||||
# the | str is there so that foo = argparse.SUPPRESS; foo = "test" checks out in mypy
|
||||
ZERO_OR_MORE: Final = "*"
|
||||
_UNRECOGNIZED_ARGS_ATTR: str # undocumented
|
||||
_UNRECOGNIZED_ARGS_ATTR: Final[str] # undocumented
|
||||
|
||||
class ArgumentError(Exception):
|
||||
argument_name: str | None
|
||||
|
||||
Reference in new issue
Block a user