Type openpyxl incomplete dunders (#10313)

This commit is contained in:
Avasam
2023-06-15 11:38:02 -04:00
committed by GitHub
parent c38fc45d9c
commit 67fb6c0cab
4 changed files with 11 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ vertical_aligments: tuple[_VerticalAlignmentsType, ...]
class Alignment(Serialisable):
tagname: ClassVar[str]
__fields__: Incomplete
__fields__: ClassVar[tuple[str, ...]]
horizontal: NoneSet[_HorizontalAlignmentsType]
vertical: NoneSet[_VerticalAlignmentsType]
textRotation: NoneSet[int]

View File

@@ -37,7 +37,7 @@ BORDER_THICK: Final = "thick"
BORDER_THIN: Final = "thin"
class Side(Serialisable):
__fields__: Incomplete
__fields__: ClassVar[tuple[str, ...]]
color: Incomplete
style: NoneSet[_SideStyle]
border_style: Alias
@@ -50,7 +50,7 @@ class Side(Serialisable):
class Border(Serialisable):
tagname: ClassVar[str]
__fields__: Incomplete
__fields__: ClassVar[tuple[str, ...]]
__elements__: ClassVar[tuple[str, ...]]
start: Typed[Side, Literal[True]]
end: Typed[Side, Literal[True]]

View File

@@ -1,5 +1,7 @@
from _typeshed import Incomplete
from openpyxl.worksheet.worksheet import Worksheet
def read_dimension(source): ...
class ReadOnlyWorksheet:
@@ -9,8 +11,8 @@ class ReadOnlyWorksheet:
def values(self): ...
@property
def rows(self): ...
__getitem__: Incomplete
__iter__: Incomplete
__getitem__ = Worksheet.__getitem__
__iter__ = Worksheet.__iter__
parent: Incomplete
title: Incomplete
sheet_state: str

View File

@@ -50,17 +50,17 @@ class CellRange(Serialisable):
def __ne__(self, other): ...
def __eq__(self, other): ...
def issubset(self, other): ...
__le__: Incomplete
__le__ = issubset
def __lt__(self, other): ...
def issuperset(self, other): ...
__ge__: Incomplete
__ge__ = issuperset
def __contains__(self, coord): ...
def __gt__(self, other): ...
def isdisjoint(self, other): ...
def intersection(self, other): ...
__and__: Incomplete
__and__ = intersection
def union(self, other): ...
__or__: Incomplete
__or__ = union
def __iter__(self): ...
def expand(self, right: int = 0, down: int = 0, left: int = 0, up: int = 0) -> None: ...
def shrink(self, right: int = 0, bottom: int = 0, left: int = 0, top: int = 0) -> None: ...