mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-17 13:59:45 +08:00
A new shade of Black (#11362)
This commit is contained in:
@@ -155,10 +155,9 @@ class DisplayUnitsLabelList(Serialisable):
|
||||
def __init__(
|
||||
self,
|
||||
custUnit: _HasTagAndGet[ConvertibleToFloat | None] | ConvertibleToFloat | None = None,
|
||||
builtInUnit: _HasTagAndGet[_DisplayUnitsLabelListBuiltInUnit]
|
||||
| _DisplayUnitsLabelListBuiltInUnit
|
||||
| Literal["none"]
|
||||
| None = None,
|
||||
builtInUnit: (
|
||||
_HasTagAndGet[_DisplayUnitsLabelListBuiltInUnit] | _DisplayUnitsLabelListBuiltInUnit | Literal["none"] | None
|
||||
) = None,
|
||||
dispUnitsLbl: DisplayUnitsLabel | None = None,
|
||||
extLst: Unused = None,
|
||||
) -> None: ...
|
||||
|
||||
@@ -18,9 +18,14 @@ class NestedBoolText(Bool[Incomplete], NestedText[Incomplete, Incomplete]): ...
|
||||
class _TypedProperty(Strict, Generic[_T]):
|
||||
name: String[Literal[False]]
|
||||
# Since this is internal, just list all possible values
|
||||
value: Integer[Literal[False]] | Float[Literal[False]] | String[Literal[True]] | DateTime[Literal[False]] | Bool[
|
||||
Literal[False]
|
||||
] | String[Literal[False]]
|
||||
value: (
|
||||
Integer[Literal[False]]
|
||||
| Float[Literal[False]]
|
||||
| String[Literal[True]]
|
||||
| DateTime[Literal[False]]
|
||||
| Bool[Literal[False]]
|
||||
| String[Literal[False]]
|
||||
)
|
||||
def __init__(self, name: str, value: _T) -> None: ...
|
||||
def __eq__(self, other: _TypedProperty[Any]) -> bool: ... # type: ignore[override]
|
||||
|
||||
|
||||
@@ -231,11 +231,13 @@ class Worksheet(_WorkbookChild):
|
||||
) -> None: ...
|
||||
def append(
|
||||
self,
|
||||
iterable: list[Incomplete]
|
||||
| tuple[Incomplete, ...]
|
||||
| range
|
||||
| GeneratorType[Incomplete, object, object]
|
||||
| dict[int | str, Incomplete],
|
||||
iterable: (
|
||||
list[Incomplete]
|
||||
| tuple[Incomplete, ...]
|
||||
| range
|
||||
| GeneratorType[Incomplete, object, object]
|
||||
| dict[int | str, Incomplete]
|
||||
),
|
||||
) -> None: ...
|
||||
def insert_rows(self, idx: int, amount: int = 1) -> None: ...
|
||||
def insert_cols(self, idx: int, amount: int = 1) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user