From e129873f9bfa1bba523831003062bbd5202a41c1 Mon Sep 17 00:00:00 2001 From: Jan-Eric Nitschke <47750513+JanEricNitschke@users.noreply.github.com> Date: Thu, 18 Sep 2025 16:00:10 +0200 Subject: [PATCH] [openpyxl] Fix stubs for openpyxl.descriptors.sequence.UniqueSequence.seq_types (#14725) --- stubs/openpyxl/@tests/stubtest_allowlist.txt | 4 ---- stubs/openpyxl/openpyxl/descriptors/sequence.pyi | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/stubs/openpyxl/@tests/stubtest_allowlist.txt b/stubs/openpyxl/@tests/stubtest_allowlist.txt index a01ce24b8..35991ce00 100644 --- a/stubs/openpyxl/@tests/stubtest_allowlist.txt +++ b/stubs/openpyxl/@tests/stubtest_allowlist.txt @@ -187,7 +187,3 @@ 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 diff --git a/stubs/openpyxl/openpyxl/descriptors/sequence.pyi b/stubs/openpyxl/openpyxl/descriptors/sequence.pyi index ba5cb0640..ffad3ba35 100644 --- a/stubs/openpyxl/openpyxl/descriptors/sequence.pyi +++ b/stubs/openpyxl/openpyxl/descriptors/sequence.pyi @@ -38,7 +38,7 @@ class Sequence(Descriptor[_ContainerT]): # `_T` is the type of the elements in the sequence. class UniqueSequence(Sequence[set[_T]]): - seq_types: tuple[type[list[_T]], type[tuple[_T, ...]], type[set[_T]]] + seq_types: tuple[type, ...] # defaults to `list`, `tuple`, `set` container: type[set[_T]] # See `Sequence` for the meaning of `_ContainerT`.