openpyxl: Type MetaSerialisable dunders (#10170)

Typed `Serialisable.__attrs__`, `Serialisable.__nested__`, `Serialisable.__elements__`, and `Serialisable.__namespaced__` ClassVars.
This commit is contained in:
Avasam
2023-05-15 07:48:15 -04:00
committed by GitHub
parent f7d7bb53ca
commit 2d5dafadb7
91 changed files with 370 additions and 300 deletions

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Alias, Integer, NoneSet, Typed, _ConvertibleToInt
@@ -47,7 +48,7 @@ class InlineFont(Font):
u: Incomplete
vertAlign: Incomplete
scheme: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
rFont: Incomplete | None = None,
@@ -73,7 +74,7 @@ class RichText(Serialisable):
font: Alias
t: Incomplete
text: Alias
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, rPr: InlineFont | None = None, t: Incomplete | None = None) -> None: ...
class Text(Serialisable):
@@ -86,7 +87,7 @@ class Text(Serialisable):
phonetic: Alias
phoneticPr: Typed[_PhoneticProperties, Literal[True]]
PhoneticProperties: Alias
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, t: Incomplete | None = None, r=(), rPh=(), phoneticPr: _PhoneticProperties | None = None) -> None: ...
@property
def content(self): ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.picture import PictureOptions
@@ -20,7 +21,7 @@ class View3D(Serialisable):
right_angle_axes: Alias
perspective: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
rotX: int = 15,
@@ -39,7 +40,7 @@ class Surface(Serialisable):
graphicalProperties: Alias
pictureOptions: Typed[PictureOptions, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
thickness: Incomplete | None = None,

View File

@@ -1,5 +1,6 @@
from _typeshed import Incomplete, Unused
from abc import abstractmethod
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.chart.layout import Layout
@@ -32,7 +33,7 @@ class ChartBase(Serialisable):
style: MinMax[float, Literal[True]]
mime_type: str
graphical_properties: Typed[GraphicalProperties, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
plot_area: Incomplete
pivotSource: Incomplete
pivotFormats: Incomplete

View File

@@ -1,5 +1,6 @@
from _typeshed import Incomplete, Unused
from abc import abstractmethod
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.axis import ChartLines, NumericAxis, SeriesAxis, TextAxis
@@ -16,7 +17,7 @@ class _AreaChartBase(ChartBase):
dLbls: Typed[DataLabelList, Literal[True]]
dataLabels: Alias
dropLines: Typed[ChartLines, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
grouping: str = "standard",
@@ -39,7 +40,7 @@ class AreaChart(_AreaChartBase):
x_axis: Typed[TextAxis, Literal[False]]
y_axis: Typed[NumericAxis, Literal[False]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, axId: Unused = None, extLst: Unused = None, **kw) -> None: ...
class AreaChart3D(AreaChart):
@@ -53,5 +54,5 @@ class AreaChart3D(AreaChart):
x_axis: Typed[TextAxis, Literal[False]]
y_axis: Typed[NumericAxis, Literal[False]]
z_axis: Typed[SeriesAxis, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, gapDepth: Incomplete | None = None, **kw) -> None: ...

View File

@@ -1,5 +1,6 @@
from _typeshed import Incomplete, Unused
from abc import abstractmethod
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.layout import Layout
@@ -22,7 +23,7 @@ class Scaling(Serialisable):
max: Incomplete
min: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
logBase: Incomplete | None = None,
@@ -52,7 +53,7 @@ class _BaseAxis(Serialisable):
crossAx: Incomplete
crosses: Incomplete
crossesAt: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
axId: Incomplete | None = None,
@@ -85,7 +86,7 @@ class DisplayUnitsLabel(Serialisable):
graphicalProperties: Alias
txPr: Typed[RichText, Literal[True]]
textPropertes: Alias
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
layout: Layout | None = None,
@@ -100,7 +101,7 @@ class DisplayUnitsLabelList(Serialisable):
builtInUnit: Incomplete
dispUnitsLbl: Typed[DisplayUnitsLabel, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
custUnit: Incomplete | None = None,
@@ -132,7 +133,7 @@ class NumericAxis(_BaseAxis):
minorUnit: Incomplete
dispUnits: Typed[DisplayUnitsLabelList, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
crossBetween: Incomplete | None = None,
@@ -170,7 +171,7 @@ class TextAxis(_BaseAxis):
tickMarkSkip: Incomplete
noMultiLvlLbl: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
auto: Incomplete | None = None,
@@ -209,7 +210,7 @@ class DateAxis(TextAxis):
minorUnit: Incomplete
minorTimeUnit: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
auto: Incomplete | None = None,
@@ -244,7 +245,7 @@ class SeriesAxis(_BaseAxis):
tickLblSkip: Incomplete
tickMarkSkip: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, tickLblSkip: Incomplete | None = None, tickMarkSkip: Incomplete | None = None, extLst: Unused = None, **kw
) -> None: ...

View File

@@ -1,5 +1,6 @@
from _typeshed import Incomplete, Unused
from abc import abstractmethod
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.axis import ChartLines, NumericAxis, SeriesAxis, TextAxis
@@ -18,7 +19,7 @@ class _BarChartBase(ChartBase):
ser: Incomplete
dLbls: Typed[DataLabelList, Literal[True]]
dataLabels: Alias
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
barDir: str = "col",
@@ -45,7 +46,7 @@ class BarChart(_BarChartBase):
extLst: Typed[ExtensionList, Literal[True]]
x_axis: Typed[TextAxis, Literal[False]]
y_axis: Typed[NumericAxis, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
legend: Incomplete
def __init__(
self,
@@ -75,7 +76,7 @@ class BarChart3D(_BarChartBase, _3DBase):
x_axis: Typed[TextAxis, Literal[False]]
y_axis: Typed[NumericAxis, Literal[False]]
z_axis: Typed[SeriesAxis, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
gapWidth: int = 150,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.axis import NumericAxis
@@ -21,7 +22,7 @@ class BubbleChart(ChartBase):
extLst: Typed[ExtensionList, Literal[True]]
x_axis: Typed[NumericAxis, Literal[False]]
y_axis: Typed[NumericAxis, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
varyColors: Incomplete | None = None,

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal
from openpyxl.chart.legend import Legend
@@ -29,7 +29,7 @@ class ChartContainer(Serialisable):
dispBlanksAs: Incomplete
showDLblsOverMax: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
title: Title | None = None,
@@ -54,7 +54,7 @@ class Protection(Serialisable):
formatting: Incomplete
selection: Incomplete
userInterface: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
chartObject: Incomplete | None = None,
@@ -91,7 +91,7 @@ class ChartSpace(Serialisable):
printSettings: Typed[PrintSettings, Literal[True]]
userShapes: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import NoReturn, overload
from typing import ClassVar, NoReturn, overload
from typing_extensions import Literal
from openpyxl.descriptors import Strict
@@ -29,7 +29,7 @@ class NumData(Serialisable):
ptCount: Incomplete
pt: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, formatCode: Incomplete | None = None, ptCount: Incomplete | None = None, pt=(), extLst: Unused = None
) -> None: ...
@@ -39,7 +39,7 @@ class NumRef(Serialisable):
ref: Alias
numCache: Typed[NumData, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, f: Incomplete | None = None, numCache: NumData | None = None, extLst: Unused = None) -> None: ...
class StrVal(Serialisable):
@@ -53,7 +53,7 @@ class StrData(Serialisable):
ptCount: Incomplete
pt: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, ptCount: Incomplete | None = None, pt=(), extLst: Unused = None) -> None: ...
class StrRef(Serialisable):
@@ -61,7 +61,7 @@ class StrRef(Serialisable):
f: Incomplete
strCache: Typed[StrData, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, f: Incomplete | None = None, strCache: StrData | None = None, extLst: Unused = None) -> None: ...
class NumDataSource(Serialisable):
@@ -72,7 +72,7 @@ class NumDataSource(Serialisable):
class Level(Serialisable):
tagname: str
pt: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, pt=()) -> None: ...
class MultiLevelStrData(Serialisable):
@@ -80,7 +80,7 @@ class MultiLevelStrData(Serialisable):
ptCount: Integer[Literal[True]]
lvl: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, ptCount: _ConvertibleToInt | None = None, lvl=(), extLst: Unused = None) -> None: ...
class MultiLevelStrRef(Serialisable):
@@ -88,7 +88,7 @@ class MultiLevelStrRef(Serialisable):
f: Incomplete
multiLvlStrCache: Typed[MultiLevelStrData, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, f: Incomplete | None = None, multiLvlStrCache: MultiLevelStrData | None = None, extLst: Unused = None
) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.data_source import NumDataSource
@@ -22,7 +23,7 @@ class ErrorBars(Serialisable):
spPr: Typed[GraphicalProperties, Literal[True]]
graphicalProperties: Alias
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
errDir: Incomplete | None = None,

View File

@@ -1,5 +1,6 @@
from _typeshed import Incomplete, Unused
from abc import abstractmethod
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.shapes import GraphicalProperties
@@ -25,7 +26,7 @@ class _DataLabelBase(Serialisable):
showLeaderLines: Incomplete
separator: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
numFmt: Incomplete | None = None,
@@ -62,7 +63,7 @@ class DataLabel(_DataLabelBase):
showLeaderLines: Incomplete
separator: Incomplete
extLst: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, idx: int = 0, **kw) -> None: ...
class DataLabelList(_DataLabelBase):
@@ -82,5 +83,5 @@ class DataLabelList(_DataLabelBase):
showLeaderLines: Incomplete
separator: Incomplete
extLst: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, dLbl=(), delete: Incomplete | None = None, **kw) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Alias, Typed
@@ -19,7 +20,7 @@ class ManualLayout(Serialisable):
h: Incomplete
height: Alias
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
layoutTarget: Incomplete | None = None,
@@ -38,5 +39,5 @@ class Layout(Serialisable):
tagname: str
manualLayout: Typed[ManualLayout, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, manualLayout: ManualLayout | None = None, extLst: Unused = None) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.layout import Layout
@@ -14,7 +15,7 @@ class LegendEntry(Serialisable):
delete: Incomplete
txPr: Typed[RichText, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, idx: int = 0, delete: bool = False, txPr: RichText | None = None, extLst: Unused = None) -> None: ...
class Legend(Serialisable):
@@ -29,7 +30,7 @@ class Legend(Serialisable):
txPr: Typed[RichText, Literal[True]]
textProperties: Alias
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
legendPos: str = "r",

View File

@@ -1,5 +1,6 @@
from _typeshed import Incomplete, Unused
from abc import abstractmethod
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.axis import ChartLines, NumericAxis, _BaseAxis
@@ -17,7 +18,7 @@ class _LineChartBase(ChartBase):
dLbls: Typed[DataLabelList, Literal[True]]
dataLabels: Alias
dropLines: Typed[ChartLines, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
grouping: str = "standard",
@@ -45,7 +46,7 @@ class LineChart(_LineChartBase):
extLst: Typed[ExtensionList, Literal[True]]
x_axis: Typed[_BaseAxis, Literal[False]]
y_axis: Typed[NumericAxis, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
hiLowLines: ChartLines | None = None,
@@ -72,7 +73,7 @@ class LineChart3D(_LineChartBase):
x_axis: Typed[ExtensionList, Literal[False]]
y_axis: Typed[ExtensionList, Literal[False]]
z_axis: Typed[ExtensionList, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
gapDepth: Incomplete | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.picture import PictureOptions
@@ -14,7 +15,7 @@ class Marker(Serialisable):
spPr: Typed[GraphicalProperties, Literal[True]]
graphicalProperties: Alias
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
symbol: Incomplete | None = None,
@@ -34,7 +35,7 @@ class DataPoint(Serialisable):
graphicalProperties: Alias
pictureOptions: Typed[PictureOptions, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
idx: Incomplete | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from openpyxl.descriptors.serialisable import Serialisable
@@ -9,7 +10,7 @@ class PictureOptions(Serialisable):
applyToEnd: Incomplete
pictureFormat: Incomplete
pictureStackUnit: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
applyToFront: Incomplete | None = None,

View File

@@ -1,5 +1,6 @@
from _typeshed import Incomplete, Unused
from abc import abstractmethod
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.axis import ChartLines
@@ -15,7 +16,7 @@ class _PieChartBase(ChartBase):
ser: Incomplete
dLbls: Typed[DataLabelList, Literal[True]]
dataLabels: Alias
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, varyColors: bool = True, ser=(), dLbls: DataLabelList | None = None) -> None: ...
@property
@abstractmethod
@@ -28,7 +29,7 @@ class PieChart(_PieChartBase):
dLbls: Incomplete
firstSliceAng: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, firstSliceAng: int = 0, extLst: Unused = None, **kw) -> None: ...
class PieChart3D(_PieChartBase):
@@ -37,7 +38,7 @@ class PieChart3D(_PieChartBase):
ser: Incomplete
dLbls: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
class DoughnutChart(_PieChartBase):
tagname: str
@@ -47,13 +48,13 @@ class DoughnutChart(_PieChartBase):
firstSliceAng: Incomplete
holeSize: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, firstSliceAng: int = 0, holeSize: int = 10, extLst: Unused = None, **kw) -> None: ...
class CustomSplit(Serialisable):
tagname: str
secondPiePt: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, secondPiePt=()) -> None: ...
class ProjectedPieChart(_PieChartBase):
@@ -71,7 +72,7 @@ class ProjectedPieChart(_PieChartBase):
serLines: Typed[ChartLines, Literal[True]]
join_lines: Alias
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
ofPieType: str = "pie",

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.label import DataLabel as _DataLabel
@@ -14,7 +15,7 @@ class PivotSource(Serialisable):
name: Incomplete
fmtId: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, name: str | None = None, fmtId: Incomplete | None = None, extLst: Unused = None) -> None: ...
class PivotFormat(Serialisable):
@@ -28,7 +29,7 @@ class PivotFormat(Serialisable):
dLbl: Typed[_DataLabel, Literal[True]]
DataLabel: Alias
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
idx: int = 0,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.layout import Layout
@@ -18,7 +19,7 @@ class DataTable(Serialisable):
graphicalProperties: Alias
txPr: Typed[RichText, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
showHorzBorder: Incomplete | None = None,
@@ -57,7 +58,7 @@ class PlotArea(Serialisable):
catAx: Incomplete
dateAx: Incomplete
serAx: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
layout: Layout | None = None,

View File

@@ -1,4 +1,4 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Alias, Float, Typed, _ConvertibleToFloat
@@ -33,7 +33,7 @@ class PrintSettings(Serialisable):
headerFooter: Typed[HeaderFooter, Literal[True]]
pageMargins: Typed[PageMargins, Literal[True]]
pageSetup: Typed[PrintPageSetup, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
headerFooter: HeaderFooter | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.axis import NumericAxis, TextAxis
@@ -19,7 +20,7 @@ class RadarChart(ChartBase):
extLst: Typed[ExtensionList, Literal[True]]
x_axis: Typed[TextAxis, Literal[False]]
y_axis: Typed[NumericAxis, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
radarStyle: str = "standard",

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.axis import NumericAxis, TextAxis
@@ -18,7 +19,7 @@ class ScatterChart(ChartBase):
extLst: Typed[ExtensionList, Literal[True]]
x_axis: Typed[NumericAxis | TextAxis, Literal[False]]
y_axis: Typed[NumericAxis, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
scatterStyle: Incomplete | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.data_source import AxDataSource, NumDataSource, StrRef
@@ -19,7 +20,7 @@ class SeriesLabel(Serialisable):
strRef: Typed[StrRef, Literal[True]]
v: Incomplete
value: Alias
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, strRef: StrRef | None = None, v: Incomplete | None = None) -> None: ...
class Series(Serialisable):
@@ -51,7 +52,7 @@ class Series(Serialisable):
marker: Typed[Marker, Literal[True]]
smooth: Incomplete
explosion: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
idx: int = 0,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Alias, NoneSet, Typed
@@ -28,7 +29,7 @@ class GraphicalProperties(Serialisable):
sp3d: Typed[Shape3D, Literal[True]]
shape3D: Alias
extLst: Typed[Incomplete, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
bwMode: _GraphicalPropertiesBwMode | Literal["none"] | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.axis import ChartLines, NumericAxis, TextAxis
@@ -20,7 +21,7 @@ class StockChart(ChartBase):
extLst: Typed[ExtensionList, Literal[True]]
x_axis: Typed[TextAxis, Literal[False]]
y_axis: Typed[NumericAxis, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
ser=(),

View File

@@ -1,5 +1,6 @@
from _typeshed import Incomplete
from abc import abstractmethod
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.axis import NumericAxis, SeriesAxis, TextAxis
@@ -16,20 +17,20 @@ class BandFormat(Serialisable):
idx: Incomplete
spPr: Typed[GraphicalProperties, Literal[True]]
graphicalProperties: Alias
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, idx: int = 0, spPr: GraphicalProperties | None = None) -> None: ...
class BandFormatList(Serialisable):
tagname: str
bandFmt: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, bandFmt=()) -> None: ...
class _SurfaceChartBase(ChartBase):
wireframe: Incomplete
ser: Incomplete
bandFmts: Typed[BandFormatList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, wireframe: Incomplete | None = None, ser=(), bandFmts: BandFormatList | None = None, **kw) -> None: ...
@property
@abstractmethod
@@ -44,7 +45,7 @@ class SurfaceChart3D(_SurfaceChartBase, _3DBase):
x_axis: Typed[TextAxis, Literal[False]]
y_axis: Typed[NumericAxis, Literal[False]]
z_axis: Typed[SeriesAxis, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, **kw) -> None: ...
class SurfaceChart(SurfaceChart3D):
@@ -53,5 +54,5 @@ class SurfaceChart(SurfaceChart3D):
ser: Incomplete
bandFmts: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, **kw) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.data_source import StrRef
@@ -13,7 +14,7 @@ class RichText(Serialisable):
lstStyle: Typed[ListStyle, Literal[True]]
p: Incomplete
paragraphs: Alias
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, bodyPr: RichTextProperties | None = None, lstStyle: ListStyle | None = None, p: Incomplete | None = None
) -> None: ...
@@ -22,6 +23,6 @@ class Text(Serialisable):
tagname: str
strRef: Typed[StrRef, Literal[True]]
rich: Typed[RichText, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, strRef: StrRef | None = None, rich: RichText | None = None) -> None: ...
def to_tree(self, tagname: Incomplete | None = None, idx: Incomplete | None = None, namespace: Incomplete | None = None): ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.layout import Layout
@@ -20,7 +21,7 @@ class Title(Serialisable):
txPr: Typed[RichText, Literal[True]]
body: Alias
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
tx: Text | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.data_source import NumFmt
@@ -19,7 +20,7 @@ class TrendlineLabel(Serialisable):
txPr: Typed[RichText, Literal[True]]
textProperties: Alias
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
layout: Layout | None = None,
@@ -45,7 +46,7 @@ class Trendline(Serialisable):
dispEq: Incomplete
trendlineLbl: Typed[ExtensionList, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
name: str | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.axis import ChartLines
@@ -12,7 +13,7 @@ class UpDownBars(Serialisable):
upBars: Typed[ChartLines, Literal[True]]
downBars: Typed[ChartLines, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, gapWidth: int = 150, upBars: ChartLines | None = None, downBars: ChartLines | None = None, extLst: Unused = None
) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.chartsheet.custom import CustomChartsheetViews
@@ -34,8 +35,8 @@ class Chartsheet(_WorkbookChild, Serialisable):
sheet_state: Set[_ChartsheetSheetState]
headerFooter: Typed[_HeaderFooter, Literal[False]]
HeaderFooter: Alias
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(
self,
sheetPr: ChartsheetProperties | None = None,

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Bool, Integer, Set, Typed, _ConvertibleToBool, _ConvertibleToInt
@@ -18,7 +18,7 @@ class CustomChartsheetView(Serialisable):
pageMargins: Typed[PageMargins, Literal[True]]
pageSetup: Typed[PrintPageSetup, Literal[True]]
headerFooter: Typed[HeaderFooter, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -46,5 +46,5 @@ class CustomChartsheetView(Serialisable):
class CustomChartsheetViews(Serialisable):
tagname: str
customSheetView: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, customSheetView: Incomplete | None = None) -> None: ...

View File

@@ -1,4 +1,4 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Bool, String, Typed, _ConvertibleToBool
@@ -10,7 +10,7 @@ class ChartsheetProperties(Serialisable):
published: Bool[Literal[True]]
codeName: String[Literal[True]]
tabColor: Typed[Color, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, published: _ConvertibleToBool | None = None, codeName: str | None = None, tabColor: Color | None = None
) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Bool, Integer, String, _ConvertibleToBool, _ConvertibleToInt
@@ -13,7 +14,7 @@ class ChartsheetProtection(Serialisable, _Protected):
spinCount: Integer[Literal[True]]
content: Bool[Literal[True]]
objects: Bool[Literal[True]]
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]
password: Incomplete
def __init__(
self,

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Bool, Integer, Set, String, _ConvertibleToBool, _ConvertibleToInt
@@ -49,5 +49,5 @@ class WebPublishItems(Serialisable):
tagname: str
count: Integer[Literal[True]]
webPublishItem: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: _ConvertibleToInt | None = None, webPublishItem: Incomplete | None = None) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Bool, Integer, Typed, _ConvertibleToBool, _ConvertibleToInt
@@ -12,7 +13,7 @@ class ChartsheetView(Serialisable):
workbookViewId: Integer[Literal[False]]
zoomToFit: Bool[Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
tabSelected: _ConvertibleToBool | None = None,
@@ -26,5 +27,5 @@ class ChartsheetViewList(Serialisable):
tagname: str
sheetView: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, sheetView: Incomplete | None = None, extLst: Unused = None) -> None: ...

View File

@@ -1,6 +1,6 @@
from _typeshed import Incomplete, Unused
from collections.abc import Generator
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.cell.text import Text
@@ -29,7 +29,7 @@ class Properties(Serialisable):
autoScale: Bool[Literal[True]]
rowHidden: Bool[Literal[True]]
colHidden: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
anchor: ObjectAnchor | None
@overload
def __init__(
@@ -82,8 +82,8 @@ class CommentRecord(Serialisable):
text: Typed[Text, Literal[False]]
commentPr: Typed[Properties, Literal[True]]
author: String[Literal[True]]
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
height: Incomplete
width: Incomplete
def __init__(
@@ -109,7 +109,7 @@ class CommentSheet(Serialisable):
commentList: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
mime_type: str
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, authors: AuthorList, commentList: Incomplete | None = None, extLst: Unused = None) -> None: ...
def to_tree(self): ...
@property

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from openpyxl.descriptors import MetaSerialisable
@@ -6,10 +7,11 @@ KEYWORDS: Incomplete
seq_types: Incomplete
class Serialisable(metaclass=MetaSerialisable):
__attrs__: Incomplete
__nested__: Incomplete
__elements__: Incomplete
__namespaced__: Incomplete
# These dunders are always set at runtime by MetaSerialisable so they can't be None
__attrs__: ClassVar[tuple[str, ...]]
__nested__: ClassVar[tuple[str, ...]]
__elements__: ClassVar[tuple[str, ...]]
__namespaced__: ClassVar[tuple[tuple[str, str], ...]]
idx_base: int
@property
# TODO: needs overrides in many sub-classes

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors import Strict, Typed
@@ -100,7 +100,7 @@ class SystemColor(Serialisable):
invGamma: Typed[Transform, Literal[True]]
val: Set[_SystemColorVal]
lastClr: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
val: _SystemColorVal = "windowText",
@@ -183,7 +183,7 @@ class SchemeColor(Serialisable):
gamma: Incomplete
invGamma: Incomplete
val: Set[_SchemeColorVal]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -263,7 +263,7 @@ class ColorChoice(Serialisable):
sysClr: Typed[SystemColor, Literal[True]]
schemeClr: Typed[SystemColor, Literal[True]]
prstClr: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
scrgbClr: _RGBPercent | None = None,

View File

@@ -1,5 +1,4 @@
from _typeshed import Incomplete
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal
from openpyxl.chart.shapes import GraphicalProperties
@@ -36,7 +35,7 @@ class NonVisualConnectorProperties(Serialisable):
class ConnectorNonVisual(Serialisable):
cNvPr: Typed[NonVisualDrawingProps, Literal[False]]
cNvCxnSpPr: Typed[NonVisualConnectorProperties, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, cNvPr: NonVisualDrawingProps, cNvCxnSpPr: NonVisualConnectorProperties) -> None: ...
class ConnectorShape(Serialisable):

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import (
@@ -123,7 +123,7 @@ class GlowEffect(ColorChoice):
sysClr: Incomplete
schemeClr: Incomplete
prstClr: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, rad: _ConvertibleToFloat, **kw) -> None: ...
class InnerShadowEffect(ColorChoice):
@@ -136,7 +136,7 @@ class InnerShadowEffect(ColorChoice):
sysClr: Incomplete
schemeClr: Incomplete
prstClr: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, blurRad: _ConvertibleToFloat, dist: _ConvertibleToFloat, dir: _ConvertibleToInt, **kw) -> None: ...
class OuterShadow(ColorChoice):
@@ -156,7 +156,7 @@ class OuterShadow(ColorChoice):
sysClr: Incomplete
schemeClr: Incomplete
prstClr: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -197,7 +197,7 @@ class PresetShadowEffect(ColorChoice):
sysClr: Incomplete
schemeClr: Incomplete
prstClr: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, prst: _PresetShadowEffectPrst, dist: _ConvertibleToFloat, dir: _ConvertibleToInt, **kw) -> None: ...
class ReflectionEffect(Serialisable):
@@ -246,7 +246,7 @@ class EffectList(Serialisable):
prstShdw: Typed[PresetShadowEffect, Literal[True]]
reflection: Typed[ReflectionEffect, Literal[True]]
softEdge: Typed[SoftEdgesEffect, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
blur: BlurEffect | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import (
@@ -106,7 +107,7 @@ class PatternFillProperties(Serialisable):
foreground: Alias
bgClr: Typed[ColorChoice, Literal[True]]
background: Alias
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
prst: _PatternFillPropertiesPrst | Literal["none"] | None = None,
@@ -147,7 +148,7 @@ class GradientStop(Serialisable):
sysClr: Typed[SystemColor, Literal[True]]
schemeClr: Typed[SchemeColor, Literal[True]]
prstClr: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
pos: _ConvertibleToFloat | None = None,
@@ -184,7 +185,7 @@ class GradientFillProperties(Serialisable):
linear: Alias
path: Typed[PathShadeProperties, Literal[True]]
tileRect: Typed[RelativeRect, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
flip: _PropertiesFlip | Literal["none"] | None = None,
@@ -205,7 +206,7 @@ class SolidColorFillProperties(Serialisable):
sysClr: Typed[SystemColor, Literal[True]]
schemeClr: Typed[SchemeColor, Literal[True]]
prstClr: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
scrgbClr: _RGBPercent | None = None,
@@ -250,7 +251,7 @@ class Blip(Serialisable):
hsl: Typed[HSLEffect, Literal[True]]
lum: Typed[LuminanceEffect, Literal[True]]
tint: Typed[TintEffect, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
cstate: _BlipCstate | Literal["none"] | None = None,
@@ -312,7 +313,7 @@ class BlipFillProperties(Serialisable):
srcRect: Typed[RelativeRect, Literal[True]]
tile: Typed[TileInfoProperties, Literal[True]]
stretch: Typed[StretchInfoProperties, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
dpi: _ConvertibleToInt | None = None,

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import (
@@ -363,7 +363,7 @@ class Transform2D(Serialisable):
ext: Typed[PositiveSize2D, Literal[True]]
chOff: Typed[Point2D, Literal[True]]
chExt: Typed[PositiveSize2D, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
rot: _ConvertibleToInt | None = None,
@@ -385,7 +385,7 @@ class GroupTransform2D(Serialisable):
ext = Typed(expected_type=PositiveSize2D, allow_none=True)
chOff = Typed(expected_type=Point2D, allow_none=True)
chExt = Typed(expected_type=PositiveSize2D, allow_none=True)
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
rot: _ConvertibleToInt | None = 0,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Alias, Bool, String, Typed, _ConvertibleToBool
@@ -38,7 +39,7 @@ class NonVisualGraphicFrame(Serialisable):
tagname: str
cNvPr: Typed[ExtensionList, Literal[False]]
cNvGraphicFramePr: Typed[ExtensionList, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, cNvPr: Incomplete | None = None, cNvGraphicFramePr: Incomplete | None = None) -> None: ...
class GraphicData(Serialisable):
@@ -61,7 +62,7 @@ class GraphicFrame(Serialisable):
graphic: Typed[GraphicObject, Literal[False]]
macro: String[Literal[True]]
fPublished: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
nvGraphicFramePr: NonVisualGraphicFrame | None = None,
@@ -77,7 +78,8 @@ class GroupShape(Serialisable):
grpSpPr: Typed[GroupShapeProperties, Literal[False]]
visualProperties: Alias
pic: Typed[PictureFrame, Literal[True]]
__elements__: Incomplete
# Source incorrectly uses a list here instead of a tuple
__elements__: ClassVar[list[str]] # type: ignore[assignment]
def __init__(
self, nvGrpSpPr: NonVisualGroupShape, grpSpPr: GroupShapeProperties, pic: PictureFrame | None = None
) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Alias, Integer, MinMax, NoneSet, Typed, _ConvertibleToFloat, _ConvertibleToInt
@@ -59,7 +60,7 @@ class LineProperties(Serialisable):
headEnd: Typed[LineEndProperties, Literal[True]]
tailEnd: Typed[LineEndProperties, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
w: _ConvertibleToFloat | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.chart.shapes import GraphicalProperties
@@ -24,7 +25,7 @@ class PictureLocking(Serialisable):
noChangeArrowheads: Bool[Literal[True]]
noChangeShapeType: Bool[Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
noCrop: _ConvertibleToBool | None = None,
@@ -46,7 +47,7 @@ class NonVisualPictureProperties(Serialisable):
preferRelativeResize: Bool[Literal[True]]
picLocks: Typed[PictureLocking, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, preferRelativeResize: _ConvertibleToBool | None = None, picLocks: Incomplete | None = None, extLst: Unused = None
) -> None: ...
@@ -55,7 +56,7 @@ class PictureNonVisual(Serialisable):
tagname: str
cNvPr: Typed[NonVisualDrawingProps, Literal[False]]
cNvPicPr: Typed[NonVisualPictureProperties, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, cNvPr: NonVisualDrawingProps | None = None, cNvPicPr: NonVisualPictureProperties | None = None
) -> None: ...
@@ -69,7 +70,7 @@ class PictureFrame(Serialisable):
spPr: Typed[GraphicalProperties, Literal[False]]
graphicalProperties: Alias
style: Typed[ShapeStyle, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
macro: str | None = None,

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Bool, NoneSet, String, Typed, _ConvertibleToBool
@@ -41,7 +41,7 @@ class GroupLocking(Serialisable):
noAdjustHandles: Bool[Literal[True]]
noChangeShapeType: Bool[Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
noGrp: _ConvertibleToBool | None = None,
@@ -62,7 +62,7 @@ class NonVisualGroupDrawingShapeProps(Serialisable):
tagname: str
grpSpLocks: Typed[GroupLocking, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, grpSpLocks: Incomplete | None = None, extLst: Unused = None) -> None: ...
class NonVisualDrawingShapeProps(Serialisable):
@@ -70,7 +70,7 @@ class NonVisualDrawingShapeProps(Serialisable):
spLocks: Typed[GroupLocking, Literal[True]]
txBax: Bool[Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
txBox: Incomplete
def __init__(
self, spLocks: Incomplete | None = None, txBox: _ConvertibleToBool | None = None, extLst: Unused = None
@@ -86,7 +86,8 @@ class NonVisualDrawingProps(Serialisable):
hlinkClick: Typed[Hyperlink, Literal[True]]
hlinkHover: Typed[Hyperlink, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
# Source incorrectly uses a list here instead of a tuple
__elements__: ClassVar[list[str]] # type: ignore[assignment]
@overload
def __init__(
self,
@@ -117,5 +118,5 @@ class NonVisualGroupShape(Serialisable):
tagname: str
cNvPr: Typed[NonVisualDrawingProps, Literal[False]]
cNvGrpSpPr: Typed[NonVisualGroupDrawingShapeProps, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, cNvPr: NonVisualDrawingProps, cNvGrpSpPr: NonVisualGroupDrawingShapeProps) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Alias, Bool, NoneSet, Typed, _ConvertibleToBool
@@ -36,7 +37,7 @@ class _AnchorBase(Serialisable):
pic: Typed[PictureFrame, Literal[True]]
contentPart: Incomplete
clientData: Typed[AnchorClientData, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
clientData: AnchorClientData | None = None,
@@ -59,7 +60,7 @@ class AbsoluteAnchor(_AnchorBase):
pic: Incomplete
contentPart: Incomplete
clientData: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, pos: XDRPoint2D | None = None, ext: XDRPositiveSize2D | None = None, **kw) -> None: ...
class OneCellAnchor(_AnchorBase):
@@ -73,7 +74,7 @@ class OneCellAnchor(_AnchorBase):
pic: Incomplete
contentPart: Incomplete
clientData: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, _from: AnchorMarker | None = None, ext: XDRPositiveSize2D | None = None, **kw) -> None: ...
class TwoCellAnchor(_AnchorBase):
@@ -88,7 +89,7 @@ class TwoCellAnchor(_AnchorBase):
pic: Incomplete
contentPart: Incomplete
clientData: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
editAs: _TwoCellAnchorEditAs | Literal["none"] | None = None,
@@ -104,7 +105,7 @@ class SpreadsheetDrawing(Serialisable):
twoCellAnchor: Incomplete
oneCellAnchor: Incomplete
absoluteAnchor: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
charts: Incomplete
images: Incomplete
def __init__(self, twoCellAnchor=(), oneCellAnchor=(), absoluteAnchor=()) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import (
@@ -156,7 +157,7 @@ class Hyperlink(Serialisable):
snd: Typed[EmbeddedWAVAudioFile, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
id: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
invalidUrl: str | None = None,
@@ -230,7 +231,7 @@ class CharacterProperties(Serialisable):
uLn: Typed[LineProperties, Literal[True]]
uFillTx: Incomplete
uFill: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
kumimoji: _ConvertibleToBool | None = None,
@@ -288,7 +289,7 @@ class TabStopList(Serialisable):
class Spacing(Serialisable):
spcPct: Incomplete
spcPts: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, spcPct: Incomplete | None = None, spcPts: Incomplete | None = None) -> None: ...
class AutonumberBullet(Serialisable):
@@ -327,7 +328,7 @@ class ParagraphProperties(Serialisable):
buAutoNum: Incomplete
buChar: Incomplete
buBlip: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
marL: _ConvertibleToInt | None = None,
@@ -374,7 +375,7 @@ class ListStyle(Serialisable):
lvl8pPr: Typed[ParagraphProperties, Literal[True]]
lvl9pPr: Typed[ParagraphProperties, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
defPPr: ParagraphProperties | None = None,
@@ -397,14 +398,14 @@ class RegularTextRun(Serialisable):
properties: Alias
t: Incomplete
value: Alias
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, rPr: CharacterProperties | None = None, t: str = "") -> None: ...
class LineBreak(Serialisable):
tagname: str
namespace: Incomplete
rPr: Typed[CharacterProperties, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, rPr: CharacterProperties | None = None) -> None: ...
class TextField(Serialisable):
@@ -413,7 +414,7 @@ class TextField(Serialisable):
rPr: Typed[CharacterProperties, Literal[True]]
pPr: Typed[CharacterProperties, Literal[True]]
t: String[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
id: str,
@@ -433,7 +434,7 @@ class Paragraph(Serialisable):
text: Alias
br: Typed[LineBreak, Literal[True]]
fld: Typed[TextField, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
pPr: ParagraphProperties | None = None,
@@ -491,7 +492,7 @@ class RichTextProperties(Serialisable):
normAutofit: Incomplete
spAutoFit: Incomplete
flatTx: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
rot: _ConvertibleToInt | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors import Float, Strict
@@ -75,7 +76,7 @@ class FormatObject(Serialisable):
val: Incomplete
gte: Bool[Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, type: _FormatObjectType, val: Incomplete | None = None, gte: _ConvertibleToBool | None = None, extLst: Unused = None
) -> None: ...
@@ -89,7 +90,7 @@ class IconSet(RuleType):
showValue: Bool[Literal[True]]
percent: Bool[Literal[True]]
reverse: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
cfvo: Incomplete
def __init__(
self,
@@ -106,7 +107,7 @@ class DataBar(RuleType):
maxLength: Integer[Literal[True]]
showValue: Bool[Literal[True]]
color: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
cfvo: Incomplete
def __init__(
self,
@@ -120,7 +121,7 @@ class DataBar(RuleType):
class ColorScale(RuleType):
tagname: str
color: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
cfvo: Incomplete
def __init__(self, cfvo: Incomplete | None = None, color: Incomplete | None = None) -> None: ...
@@ -145,8 +146,8 @@ class Rule(Serialisable):
iconSet: Typed[IconSet, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
dxf: Typed[DifferentialStyle, Literal[True]]
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(
self,
type: _RuleType,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from openpyxl.descriptors import DateTime
from openpyxl.descriptors.base import Alias
@@ -36,7 +37,7 @@ class DocumentProperties(Serialisable):
language: Incomplete
created: Incomplete
modified: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
category: Incomplete | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Typed
@@ -7,16 +8,16 @@ from openpyxl.descriptors.serialisable import Serialisable
def get_version(): ...
class DigSigBlob(Serialisable):
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
class VectorLpstr(Serialisable):
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
class VectorVariant(Serialisable):
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
class ExtendedProperties(Serialisable):
tagname: str
@@ -47,7 +48,7 @@ class ExtendedProperties(Serialisable):
Application: Incomplete
AppVersion: Incomplete
DocSecurity: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
Template: Incomplete | None = None,

View File

@@ -1,5 +1,6 @@
from _typeshed import Incomplete
from collections.abc import Generator
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import String
@@ -27,7 +28,7 @@ class Manifest(Serialisable):
Default: Incomplete
Override: Incomplete
path: str
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, Default=(), Override=()) -> None: ...
@property
def filenames(self): ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Alias, Bool, Integer, NoneSet, String, Typed, _ConvertibleToBool, _ConvertibleToInt
@@ -72,7 +73,7 @@ class WorkbookPackage(Serialisable):
webPublishObjects: Typed[WebPublishObjectList, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
Ignorable: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
conformance: _WorkbookPackageConformance | Literal["none"] | None = None,

View File

@@ -1,6 +1,6 @@
from _typeshed import Incomplete, Unused
from datetime import datetime
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import (
@@ -56,7 +56,7 @@ class CalculatedMember(Serialisable):
solveOrder: Integer[Literal[False]]
set: Bool[Literal[False]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
name: str,
@@ -75,7 +75,7 @@ class CalculatedItem(Serialisable):
formula: String[Literal[False]]
pivotArea: Typed[PivotArea, Literal[False]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self, field: _ConvertibleToInt | None = None, *, formula: str, pivotArea: PivotArea, extLst: Incomplete | None = None
@@ -94,8 +94,8 @@ class ServerFormat(Serialisable):
class ServerFormatList(Serialisable):
tagname: str
serverFormat: Incomplete
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, count: Incomplete | None = None, serverFormat: Incomplete | None = None) -> None: ...
@property
def count(self): ...
@@ -104,14 +104,14 @@ class Query(Serialisable):
tagname: str
mdx: String[Literal[False]]
tpls: Typed[TupleList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, mdx: str, tpls: TupleList | None = None) -> None: ...
class QueryCache(Serialisable):
tagname: str
count: Integer[Literal[False]]
query: Typed[Query, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: _ConvertibleToInt, query: Query) -> None: ...
class OLAPSet(Serialisable):
@@ -123,7 +123,7 @@ class OLAPSet(Serialisable):
queryFailed: Bool[Literal[False]]
tpls: Typed[TupleList, Literal[True]]
sortByTuple: Typed[TupleList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
count: _ConvertibleToInt,
@@ -138,7 +138,7 @@ class OLAPSet(Serialisable):
class OLAPSets(Serialisable):
count: Integer[Literal[False]]
set: Typed[OLAPSet, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: _ConvertibleToInt, set: OLAPSet) -> None: ...
class PCDSDTCEntries(Serialisable):
@@ -148,7 +148,7 @@ class PCDSDTCEntries(Serialisable):
n: Typed[Number, Literal[False]]
e: Typed[Error, Literal[False]]
s: Typed[Text, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: _ConvertibleToInt, m: Missing, n: Number, e: Error, s: Text) -> None: ...
class TupleCache(Serialisable):
@@ -158,7 +158,7 @@ class TupleCache(Serialisable):
queryCache: Typed[QueryCache, Literal[True]]
serverFormats: Typed[ServerFormatList, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
entries: PCDSDTCEntries | None = None,
@@ -222,7 +222,7 @@ class GroupMember(Serialisable):
class GroupMembers(Serialisable):
count: Integer[Literal[False]]
groupMember: Typed[GroupMember, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: _ConvertibleToInt, groupMember: GroupMember) -> None: ...
class LevelGroup(Serialisable):
@@ -233,7 +233,7 @@ class LevelGroup(Serialisable):
uniqueParent: String[Literal[False]]
id: Integer[Literal[False]]
groupMembers: Typed[GroupMembers, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, name: str, uniqueName: str, caption: str, uniqueParent: str, id: _ConvertibleToInt, groupMembers: GroupMembers
) -> None: ...
@@ -242,7 +242,7 @@ class Groups(Serialisable):
tagname: str
count: Integer[Literal[False]]
group: Typed[LevelGroup, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: _ConvertibleToInt, group: LevelGroup) -> None: ...
class GroupLevel(Serialisable):
@@ -253,7 +253,7 @@ class GroupLevel(Serialisable):
customRollUp: Bool[Literal[False]]
groups: Typed[Groups, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
uniqueName: str,
@@ -267,7 +267,7 @@ class GroupLevel(Serialisable):
class GroupLevels(Serialisable):
count: Integer[Literal[False]]
groupLevel: Typed[GroupLevel, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: _ConvertibleToInt, groupLevel: GroupLevel) -> None: ...
class FieldUsage(Serialisable):
@@ -278,7 +278,7 @@ class FieldUsage(Serialisable):
class FieldsUsage(Serialisable):
count: Integer[Literal[False]]
fieldUsage: Typed[FieldUsage, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: _ConvertibleToInt, fieldUsage: FieldUsage | None = None) -> None: ...
class CacheHierarchy(Serialisable):
@@ -308,7 +308,7 @@ class CacheHierarchy(Serialisable):
fieldsUsage: Typed[FieldsUsage, Literal[True]]
groupLevels: Typed[GroupLevels, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -377,8 +377,8 @@ class GroupItems(Serialisable):
e: Incomplete
s: Incomplete
d: Incomplete
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, count: Incomplete | None = None, m=(), n=(), b=(), e=(), s=(), d=()) -> None: ...
@property
def count(self): ...
@@ -387,7 +387,7 @@ class DiscretePr(Serialisable):
tagname: str
count: Integer[Literal[False]]
x: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: _ConvertibleToInt, x: Incomplete | None = None) -> None: ...
class RangePr(Serialisable):
@@ -419,7 +419,7 @@ class FieldGroup(Serialisable):
rangePr: Typed[RangePr, Literal[True]]
discretePr: Typed[DiscretePr, Literal[True]]
groupItems: Typed[GroupItems, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
par: _ConvertibleToInt | None = None,
@@ -450,7 +450,7 @@ class SharedItems(Serialisable):
minDate: DateTime[Literal[True]]
maxDate: DateTime[Literal[True]]
longText: Bool[Literal[True]]
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]
def __init__(
self,
_fields=(),
@@ -491,7 +491,7 @@ class CacheField(Serialisable):
databaseField: Bool[Literal[True]]
mappingCount: Integer[Literal[True]]
memberPropertyField: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -577,7 +577,7 @@ class PageItem(Serialisable):
class Page(Serialisable):
tagname: str
pageItem: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: Incomplete | None = None, pageItem: Incomplete | None = None) -> None: ...
@property
def count(self): ...
@@ -587,7 +587,7 @@ class Consolidation(Serialisable):
autoPage: Bool[Literal[True]]
pages: Incomplete
rangeSets: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, autoPage: _ConvertibleToBool | None = None, pages=(), rangeSets=()) -> None: ...
class WorksheetSource(Serialisable):
@@ -604,7 +604,7 @@ class CacheSource(Serialisable):
worksheetSource: Typed[WorksheetSource, Literal[True]]
consolidation: Typed[Consolidation, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
type: _CacheSourceType,
@@ -648,7 +648,7 @@ class CacheDefinition(Serialisable):
maps: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
id: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,

View File

@@ -1,6 +1,6 @@
from _typeshed import Incomplete
from datetime import datetime
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal
from openpyxl.descriptors.base import (
@@ -30,7 +30,7 @@ class Tuple(Serialisable):
class TupleList(Serialisable):
c: Integer[Literal[True]]
tpl: Typed[Tuple, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(self, c: _ConvertibleToInt | None = None, *, tpl: Tuple) -> None: ...
@overload
@@ -51,7 +51,7 @@ class Missing(Serialisable):
un: Bool[Literal[True]]
st: Bool[Literal[True]]
b: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
tpls=(),
@@ -85,7 +85,7 @@ class Number(Serialisable):
un: Bool[Literal[True]]
st: Bool[Literal[True]]
b: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -140,7 +140,7 @@ class Error(Serialisable):
un: Bool[Literal[True]]
st: Bool[Literal[True]]
b: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -187,7 +187,7 @@ class Boolean(Serialisable):
f: Bool[Literal[True]]
c: String[Literal[True]]
cp: Integer[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
x=(),
@@ -214,7 +214,7 @@ class Text(Serialisable):
un: Bool[Literal[True]]
st: Bool[Literal[True]]
b: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
tpls=(),
@@ -241,7 +241,7 @@ class DateTimeField(Serialisable):
f: Bool[Literal[True]]
c: String[Literal[True]]
cp: Integer[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
x=(),

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Typed
@@ -32,8 +33,8 @@ class RecordList(Serialisable):
tagname: str
r: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, count: Unused = None, r=(), extLst: ExtensionList | None = None) -> None: ...
@property
def count(self): ...

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Bool, Integer, NoneSet, Set, String, Typed, _ConvertibleToBool, _ConvertibleToInt
@@ -113,8 +113,8 @@ class HierarchyUsage(Serialisable):
class ColHierarchiesUsage(Serialisable):
tagname: str
colHierarchyUsage: Incomplete
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, count: Incomplete | None = None, colHierarchyUsage=()) -> None: ...
@property
def count(self): ...
@@ -122,8 +122,8 @@ class ColHierarchiesUsage(Serialisable):
class RowHierarchiesUsage(Serialisable):
tagname: str
rowHierarchyUsage: Incomplete
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, count: Incomplete | None = None, rowHierarchyUsage=()) -> None: ...
@property
def count(self): ...
@@ -143,7 +143,7 @@ class PivotFilter(Serialisable):
stringValue2: String[Literal[True]]
autoFilter: Typed[AutoFilter, Literal[False]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -183,7 +183,7 @@ class PivotFilter(Serialisable):
class PivotFilters(Serialisable):
count: Integer[Literal[False]]
filter: Typed[PivotFilter, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: _ConvertibleToInt, filter: PivotFilter | None = None) -> None: ...
class PivotTableStyle(Serialisable):
@@ -208,7 +208,7 @@ class MemberList(Serialisable):
tagname: str
level: Integer[Literal[True]]
member: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: Incomplete | None = None, level: _ConvertibleToInt | None = None, member=()) -> None: ...
@property
def count(self): ...
@@ -268,7 +268,7 @@ class PivotHierarchy(Serialisable):
mps: Incomplete
members: Typed[MemberList, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
outline: _ConvertibleToBool = None,
@@ -307,7 +307,7 @@ class Reference(Serialisable):
varPSubtotal: Bool[Literal[True]]
x: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
field: _ConvertibleToInt | None = None,
@@ -349,7 +349,7 @@ class PivotArea(Serialisable):
collapsedLevelsAreSubtotals: Bool[Literal[True]]
axis: NoneSet[_PivotAxis]
fieldPosition: Integer[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
references=(),
@@ -374,7 +374,7 @@ class ChartFormat(Serialisable):
format: Integer[Literal[False]]
series: Bool[Literal[False]]
pivotArea: Typed[PivotArea, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self, chart: _ConvertibleToInt, format: _ConvertibleToInt, series: _ConvertibleToBool = None, *, pivotArea: PivotArea
@@ -391,7 +391,7 @@ class ConditionalFormat(Serialisable):
priority: Integer[Literal[False]]
pivotAreas: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -415,7 +415,7 @@ class ConditionalFormat(Serialisable):
class ConditionalFormatList(Serialisable):
tagname: str
conditionalFormat: Incomplete
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, conditionalFormat=..., count: Incomplete | None = ...) -> None: ...
def by_priority(self): ...
@property
@@ -428,7 +428,7 @@ class Format(Serialisable):
dxfId: Integer[Literal[True]]
pivotArea: Typed[PivotArea, Literal[False]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -457,7 +457,7 @@ class DataField(Serialisable):
baseItem: Integer[Literal[False]]
numFmtId: Integer[Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -492,7 +492,7 @@ class PageField(Serialisable):
name: String[Literal[True]]
cap: String[Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
fld: _ConvertibleToInt,
@@ -509,7 +509,7 @@ class RowColItem(Serialisable):
r: Integer[Literal[False]]
i: Integer[Literal[False]]
x: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, t: _ItemType = "data", r: _ConvertibleToInt = 0, i: _ConvertibleToInt = 0, x=()) -> None: ...
class RowColField(Serialisable):
@@ -519,7 +519,7 @@ class RowColField(Serialisable):
class AutoSortScope(Serialisable):
pivotArea: Typed[PivotArea, Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, pivotArea: PivotArea) -> None: ...
class FieldItem(Serialisable):
@@ -603,7 +603,7 @@ class PivotField(Serialisable):
showPropTip: Bool[Literal[True]]
showPropAsCaption: Bool[Literal[True]]
defaultAttributeDrillState: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
items=(),
@@ -768,7 +768,7 @@ class TableDefinition(Serialisable):
colHierarchiesUsage: Typed[ColHierarchiesUsage, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
id: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Alias, Bool, NoneSet, Typed, _ConvertibleToBool
@@ -50,7 +51,7 @@ class Side(Serialisable):
class Border(Serialisable):
tagname: str
__fields__: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
start: Typed[Side, Literal[True]]
end: Typed[Side, Literal[True]]
left: Typed[Side, Literal[True]]

View File

@@ -1,5 +1,6 @@
from _typeshed import Incomplete, Unused
from array import array
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors import Strict
@@ -50,8 +51,8 @@ class CellStyle(Serialisable):
alignment: Typed[Alignment, Literal[True]]
protection: Typed[Protection, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(
self,
numFmtId: _ConvertibleToInt = 0,
@@ -81,13 +82,13 @@ class CellStyle(Serialisable):
class CellStyleList(Serialisable):
tagname: str
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]
# Overwritten by property below
# count: Integer
xf: Incomplete
alignment: Incomplete
protection: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: Unused = None, xf=()) -> None: ...
@property
def count(self): ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors import Strict, Typed
@@ -55,7 +56,7 @@ class ColorList(Serialisable):
tagname: str
indexedColors: Incomplete
mruColors: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, indexedColors=(), mruColors=()) -> None: ...
def __bool__(self) -> bool: ...
@property

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Alias, Typed
@@ -9,7 +10,7 @@ from openpyxl.styles.numbers import NumberFormat
class DifferentialStyle(Serialisable):
tagname: str
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
font: Typed[Font, Literal[True]]
numFmt: Typed[NumberFormat, Literal[True]]
fill: Typed[Fill, Literal[True]]
@@ -32,7 +33,7 @@ class DifferentialStyleList(Serialisable):
tagname: str
dxf: Incomplete
styles: Alias
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, dxf=(), count: Incomplete | None = None) -> None: ...
def append(self, dxf) -> None: ...
def add(self, dxf): ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Final, Literal, TypeAlias
from openpyxl.descriptors import Sequence
@@ -56,7 +57,7 @@ class Fill(Serialisable):
class PatternFill(Fill):
tagname: str
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
patternType: NoneSet[_FillsType]
fill_type: Alias
fgColor: Incomplete

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from openpyxl.descriptors.base import Alias
from openpyxl.descriptors.serialisable import Serialisable
@@ -29,7 +30,7 @@ class Font(Serialisable):
color: Incomplete
scheme: Incomplete
tagname: str
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
name: Incomplete | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Bool, Integer, String, Typed, _ConvertibleToBool, _ConvertibleToInt
@@ -59,7 +60,7 @@ class _NamedCellStyle(Serialisable):
hidden: Bool[Literal[True]]
customBuiltin: Bool[Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
name: str,
@@ -76,7 +77,7 @@ class _NamedCellStyleList(Serialisable):
# Overwritten by property below
# count: Integer
cellStyle: Incomplete
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, count: Unused = None, cellStyle=()) -> None: ...
@property
def count(self): ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors import Strict, String
@@ -67,8 +68,8 @@ class NumberFormatList(Serialisable):
# Overwritten by property below
# count: Integer
numFmt: Incomplete
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, count: Unused = None, numFmt=()) -> None: ...
@property
def count(self): ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Typed
@@ -23,7 +24,7 @@ class Stylesheet(Serialisable):
tableStyles: Typed[TableStyleList, Literal[True]]
colors: Typed[ColorList, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
number_formats: Incomplete
cell_styles: Incomplete
alignments: Incomplete

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Bool, Integer, Set, String, _ConvertibleToBool, _ConvertibleToInt
@@ -51,7 +52,7 @@ class TableStyle(Serialisable):
table: Bool[Literal[True]]
count: Integer[Literal[True]]
tableStyleElement: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
name: str,
@@ -66,8 +67,8 @@ class TableStyleList(Serialisable):
defaultTableStyle: String[Literal[True]]
defaultPivotStyle: String[Literal[True]]
tableStyle: Incomplete
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(
self,
count: Unused = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Bool, Integer, NoneSet, String, Typed, _ConvertibleToBool, _ConvertibleToInt
@@ -23,24 +24,24 @@ class ExternalCell(Serialisable):
class ExternalRow(Serialisable):
r: Integer[Literal[False]]
cell: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, r: _ConvertibleToInt, cell: Incomplete | None = None) -> None: ...
class ExternalSheetData(Serialisable):
sheetId: Integer[Literal[False]]
refreshError: Bool[Literal[True]]
row: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, sheetId: _ConvertibleToInt, refreshError: _ConvertibleToBool | None = None, row=()) -> None: ...
class ExternalSheetDataSet(Serialisable):
sheetData: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, sheetData: Incomplete | None = None) -> None: ...
class ExternalSheetNames(Serialisable):
sheetName: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, sheetName=()) -> None: ...
class ExternalDefinedName(Serialisable):
@@ -56,7 +57,7 @@ class ExternalBook(Serialisable):
definedNames: Incomplete
sheetDataSet: Typed[ExternalSheetDataSet, Literal[True]]
id: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
sheetNames: ExternalSheetNames | None = None,
@@ -70,7 +71,7 @@ class ExternalLink(Serialisable):
mime_type: str
externalBook: Typed[ExternalBook, Literal[True]]
file_link: Typed[Relationship, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, externalBook: ExternalBook | None = None, ddeLink: Unused = None, oleLink: Unused = None, extLst: Unused = None
) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Integer, String, _ConvertibleToInt
@@ -13,5 +14,5 @@ class FunctionGroupList(Serialisable):
tagname: str
builtInGroupCount: Integer[Literal[True]]
functionGroup: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, builtInGroupCount: _ConvertibleToInt | None = 16, functionGroup=()) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Alias, Bool, Integer, String, _ConvertibleToBool, _ConvertibleToInt
@@ -24,7 +25,7 @@ class WorkbookProtection(Serialisable):
workbookHashValue: Incomplete
workbookSaltValue: Incomplete
workbookSpinCount: Integer[Literal[True]]
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]
def __init__(
self,
workbookPassword: Incomplete | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Bool, NoneSet, String, _ConvertibleToBool
@@ -16,7 +17,7 @@ class SmartTag(Serialisable):
class SmartTagList(Serialisable):
tagname: str
smartTagType: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, smartTagType=()) -> None: ...
class SmartTagProperties(Serialisable):

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Bool, Integer, NoneSet, String, Typed, _ConvertibleToBool, _ConvertibleToInt
@@ -26,7 +26,7 @@ class BookView(Serialisable):
activeTab: Integer[Literal[True]]
autoFilterDateGrouping: Bool[Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
visibility: _BookViewVilibility | Literal["none"] | None = "visible",
@@ -72,7 +72,7 @@ class CustomWorkbookView(Serialisable):
showComments: NoneSet[_CustomWorkbookViewShowComments]
showObjects: NoneSet[_CustomWorkbookViewShowObjects]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Bool, Integer, NoneSet, String, _ConvertibleToBool, _ConvertibleToInt
@@ -54,7 +54,7 @@ class WebPublishObjectList(Serialisable):
# Overwritten by property below
# count: Integer
webPublishObject: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, count: Unused = None, webPublishObject=()) -> None: ...
@property
def count(self): ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import String
@@ -12,5 +13,5 @@ class CellWatch(Serialisable):
class CellWatches(Serialisable):
tagname: str
cellWatch: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, cellWatch=()) -> None: ...

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal
from openpyxl.descriptors.base import Bool, Integer, String, Typed, _ConvertibleToBool, _ConvertibleToInt
@@ -24,7 +24,7 @@ class ControlProperty(Serialisable):
listFillRange: String[Literal[True]]
cf: String[Literal[True]]
id: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
anchor: ObjectAnchor,
@@ -50,7 +50,7 @@ class Control(Serialisable):
controlPr: Typed[ControlProperty, Literal[True]]
shapeId: Integer[Literal[False]]
name: String[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self, controlPr: ControlProperty | None = None, *, shapeId: _ConvertibleToInt, name: str | None = None
@@ -61,5 +61,5 @@ class Control(Serialisable):
class Controls(Serialisable):
tagname: str
control: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, control=()) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import String
@@ -12,5 +13,5 @@ class CustomProperty(Serialisable):
class CustomProperties(Serialisable):
tagname: str
customPr: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, customPr=()) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import (
@@ -87,8 +88,8 @@ class DataValidationList(Serialisable):
xWindow: Integer[Literal[True]]
yWindow: Integer[Literal[True]]
dataValidation: Incomplete
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(
self,
disablePrompts: _ConvertibleToBool | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Bool, String, Typed, _ConvertibleToBool
@@ -12,7 +13,7 @@ class Extension(Serialisable):
class ExtensionList(Serialisable):
tagname: str
ext: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, ext=()) -> None: ...
class IgnoredError(Serialisable):
@@ -45,5 +46,5 @@ class IgnoredErrors(Serialisable):
tagname: str
ignoredError: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, ignoredError=(), extLst: ExtensionList | None = None) -> None: ...

View File

@@ -1,6 +1,6 @@
from _typeshed import Incomplete, Unused
from datetime import datetime
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import (
@@ -127,7 +127,7 @@ class SortState(Serialisable):
ref: Incomplete
sortCondition: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
columnSort: _ConvertibleToBool | None = None,
@@ -179,7 +179,7 @@ class CustomFilters(Serialisable):
tagname: str
_and: Bool[Literal[True]] # Not private. Avoids name clash
customFilter: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, _and: _ConvertibleToBool | None = False, customFilter=()) -> None: ...
class Top10(Serialisable):
@@ -245,7 +245,7 @@ class Filters(Serialisable):
calendarType: NoneSet[_FiltersCalendarType]
filter: Incomplete
dateGroupItem: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
blank: _ConvertibleToBool | None = None,
@@ -267,7 +267,7 @@ class FilterColumn(Serialisable):
colorFilter: Typed[ColorFilter, Literal[True]]
iconFilter: Typed[IconFilter, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
colId: _ConvertibleToInt,
@@ -290,7 +290,7 @@ class AutoFilter(Serialisable):
filterColumn: Incomplete
sortState: Typed[SortState, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self, ref: Incomplete | None = None, filterColumn=(), sortState: SortState | None = None, extLst: Unused = None
) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors import Strict
@@ -51,7 +52,7 @@ class HeaderFooter(Serialisable):
evenFooter: Typed[HeaderFooterItem, Literal[True]]
firstHeader: Typed[HeaderFooterItem, Literal[True]]
firstFooter: Typed[HeaderFooterItem, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
differentOddEven: _ConvertibleToBool | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import String
@@ -12,7 +13,7 @@ class Hyperlink(Serialisable):
display: String[Literal[True]]
id: Incomplete
target: String[Literal[True]]
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]
def __init__(
self,
ref: str,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from openpyxl.descriptors.serialisable import Serialisable
@@ -8,7 +9,7 @@ class MergeCell(CellRange):
tagname: str
@property
def ref(self): ...
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, ref: Incomplete | None = None) -> None: ...
def __copy__(self): ...
@@ -17,8 +18,8 @@ class MergeCells(Serialisable):
# Overwritten by property below
# count: Integer
mergeCell: Incomplete
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, count: Unused = None, mergeCell=()) -> None: ...
@property
def count(self): ...

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import Bool, Integer, Set, String, Typed, _ConvertibleToBool, _ConvertibleToInt
@@ -39,7 +39,7 @@ class ObjectPr(Serialisable):
macro: String[Literal[False]]
altText: String[Literal[True]]
dde: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -83,7 +83,7 @@ class OleObject(Serialisable):
oleUpdate: Set[_OleObjectOleUpdate]
autoLoad: Bool[Literal[True]]
shapeId: Integer[Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -111,5 +111,5 @@ class OleObject(Serialisable):
class OleObjects(Serialisable):
tagname: str
oleObject: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, oleObject=()) -> None: ...

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Bool, Integer, _ConvertibleToBool, _ConvertibleToInt
@@ -26,8 +27,8 @@ class RowBreak(Serialisable):
# count: Integer
# manualBreakCount: Integer
brk: Incomplete
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, count: Unused = None, manualBreakCount: Unused = None, brk=()) -> None: ...
def __bool__(self) -> bool: ...
def __len__(self) -> int: ...
@@ -46,4 +47,4 @@ class ColBreak(RowBreak):
@property
def manualBreakCount(self): ...
brk: Incomplete
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Bool, String, Typed, _ConvertibleToBool
@@ -38,7 +39,7 @@ class WorksheetProperties(Serialisable):
tabColor: Incomplete
outlinePr: Typed[Outline, Literal[True]]
pageSetUpPr: Typed[PageSetupProperties, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
codeName: str | None = None,

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar
from typing_extensions import Literal
from openpyxl.descriptors.base import Alias, Bool, Integer, String, _ConvertibleToBool, _ConvertibleToInt
@@ -34,7 +35,7 @@ class SheetProtection(Serialisable, _Protected):
spinCount: Integer[Literal[True]]
algorithmName: String[Literal[True]]
hashValue: Incomplete
__attrs__: Incomplete
__attrs__: ClassVar[tuple[str, ...]]
password: Incomplete
def __init__(
self,

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal
from openpyxl.descriptors.base import (
@@ -50,8 +50,8 @@ class Scenario(Serialisable):
hidden: Bool[Literal[True]]
user: String[Literal[True]]
comment: String[Literal[True]]
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -84,7 +84,7 @@ class ScenarioList(Serialisable):
current: Integer[Literal[True]]
show: Integer[Literal[True]]
sqref: Convertible[MultiCellRange, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
scenario=(),

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal
from openpyxl.descriptors.base import Bool, Integer, String, _ConvertibleToBool, _ConvertibleToInt
@@ -17,7 +17,7 @@ class CellSmartTag(Serialisable):
type: Integer[Literal[False]]
deleted: Bool[Literal[True]]
xmlBased: Bool[Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -40,11 +40,11 @@ class CellSmartTags(Serialisable):
tagname: str
cellSmartTag: Incomplete
r: String[Literal[False]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, cellSmartTag, r: str) -> None: ...
class SmartTags(Serialisable):
tagname: str
cellSmartTags: Incomplete
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, cellSmartTags=()) -> None: ...

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import overload
from typing import ClassVar, overload
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors import Strict, String
@@ -39,7 +39,7 @@ class XMLColumnProps(Serialisable):
denormalized: Bool[Literal[True]]
xmlDataType: String[Literal[False]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -85,7 +85,7 @@ class TableColumn(Serialisable):
totalsRowFormula: Typed[TableFormula, Literal[True]]
xmlColumnPr: Typed[XMLColumnProps, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
@overload
def __init__(
self,
@@ -164,7 +164,7 @@ class Table(Serialisable):
tableColumns: Incomplete
tableStyleInfo: Typed[TableStyleInfo, Literal[True]]
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(
self,
id: _ConvertibleToInt = 1,
@@ -206,8 +206,8 @@ class TablePartList(Serialisable):
# Overwritten by property below
# count: Integer
tablePart: Incomplete
__elements__: Incomplete
__attrs__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
__attrs__: ClassVar[tuple[str, ...]]
def __init__(self, count: Unused = None, tablePart=()) -> None: ...
def append(self, part) -> None: ...
@property

View File

@@ -1,4 +1,5 @@
from _typeshed import Incomplete, Unused
from typing import ClassVar
from typing_extensions import Literal, TypeAlias
from openpyxl.descriptors.base import (
@@ -102,5 +103,5 @@ class SheetViewList(Serialisable):
tagname: str
sheetView: Incomplete
extLst: Typed[ExtensionList, Literal[True]]
__elements__: Incomplete
__elements__: ClassVar[tuple[str, ...]]
def __init__(self, sheetView: Incomplete | None = None, extLst: Unused = None) -> None: ...