mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-22 02:52:07 +08:00
Use MaybeNone (alias to Any) when applicable (#12855)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from _typeshed import Incomplete, MaybeNone
|
||||
from abc import abstractmethod
|
||||
from collections.abc import Callable, Iterable, Mapping, Sequence
|
||||
from typing import IO, Any, AnyStr, Literal, NoReturn, overload
|
||||
@@ -56,7 +56,7 @@ class HelpFormatter:
|
||||
current_indent: int
|
||||
default_tag: str
|
||||
help_position: int
|
||||
help_width: int | Any # initialized as None and computed later as int when storing option strings
|
||||
help_width: int | MaybeNone # initialized as None and computed later as int when storing option strings
|
||||
indent_increment: int
|
||||
level: int
|
||||
max_help_position: int
|
||||
|
||||
Reference in New Issue
Block a user