Update mypy to 1.18.1 (#14699)

This commit is contained in:
sobolevn
2025-09-14 03:33:27 +02:00
committed by GitHub
parent 59c36c8bf9
commit 4b0623f4fb
31 changed files with 70 additions and 108 deletions
+4 -8
View File
@@ -26,14 +26,6 @@ openpyxl.descriptors.nested.NestedMinMax.__get__
openpyxl.descriptors.nested.NestedText.__get__
openpyxl.descriptors.nested.NestedValue.__get__
# Stubtest sees <class T> and type[T] as different: https://github.com/python/mypy/issues/13316
openpyxl.chart.descriptors.NumberFormatDescriptor.expected_type
openpyxl.chart.title.TitleDescriptor.expected_type
openpyxl.drawing.colors.ColorChoiceDescriptor.expected_type
openpyxl.packaging.relationship.RelationshipList.expected_type
openpyxl.styles.colors.ColorDescriptor.expected_type
openpyxl.styles.fills.StopList.expected_type
# Stubtest doesn't like generics here
openpyxl\.descriptors\.(base\.)?Bool\.allow_none
openpyxl\.descriptors\.(base\.)?DateTime\.allow_none
@@ -195,3 +187,7 @@ openpyxl.worksheet.smart_tag.CellSmartTagPr.__init__
openpyxl.worksheet.smart_tag.CellSmartTags.__init__
openpyxl.worksheet.table.TableColumn.__init__
openpyxl.worksheet.table.XMLColumnProps.__init__
# FIXME: new stubtest errors from mypy v1.18.1 that need to be looked at more closely.
# See https://github.com/python/typeshed/pull/14699
openpyxl.descriptors.sequence.UniqueSequence.seq_types
@@ -31,7 +31,6 @@ class StyleArray(array[int]):
quotePrefix: ArrayDescriptor[int]
xfId: ArrayDescriptor[int]
def __new__(cls, args: bytes | bytearray | Iterable[int] = [0, 0, 0, 0, 0, 0, 0, 0, 0]) -> Self: ...
def __init__(self, args: bytes | bytearray | Iterable[int] = [0, 0, 0, 0, 0, 0, 0, 0, 0]) -> None: ...
def __hash__(self) -> int: ... # type: ignore[override]
def __copy__(self) -> StyleArray: ...
def __deepcopy__(self, memo: Unused) -> StyleArray: ...