Mark many attributes as read-only properties (#7591)

This commit is contained in:
Alex Waygood
2022-04-05 07:37:24 +01:00
committed by GitHub
parent b8f2eb3930
commit 85aec034ae
28 changed files with 189 additions and 93 deletions

View File

@@ -66,7 +66,8 @@ class MergedCell(StyleableObject):
row: Any
column: Any
def __init__(self, worksheet, row: Any | None = ..., column: Any | None = ...) -> None: ...
coordinate: Any
@property
def coordinate(self): ...
value: Any
def WriteOnlyCell(ws: Any | None = ..., value: Any | None = ...): ...

View File

@@ -5,8 +5,10 @@ def read_dimension(source): ...
class ReadOnlyWorksheet:
cell: Any
iter_rows: Any
values: Any
rows: Any
@property
def values(self): ...
@property
def rows(self): ...
__getitem__: Any
__iter__: Any
parent: Any

View File

@@ -7,13 +7,16 @@ class WriteOnlyWorksheet(_WorkbookChild):
add_chart: Any
add_image: Any
add_table: Any
tables: Any
print_titles: Any
@property
def tables(self): ...
@property
def print_titles(self): ...
print_title_cols: Any
print_title_rows: Any
freeze_panes: Any
print_area: Any
sheet_view: Any
@property
def sheet_view(self): ...
def __init__(self, parent, title) -> None: ...
@property
def closed(self): ...

View File

@@ -6,7 +6,8 @@ from .cell_range import CellRange
class MergeCell(CellRange):
tagname: str
ref: Any
@property
def ref(self): ...
__attrs__: Any
def __init__(self, ref: Any | None = ...) -> None: ...
def __copy__(self): ...

View File

@@ -32,7 +32,9 @@ PageBreak = RowBreak
class ColBreak(RowBreak):
tagname: str
count: Any
manualBreakCount: Any
@property
def count(self): ...
@property
def manualBreakCount(self): ...
brk: Any
__attrs__: Any