Skip to content

Commit e129873

Browse files
[openpyxl] Fix stubs for openpyxl.descriptors.sequence.UniqueSequence.seq_types (#14725)
1 parent 4b0fec4 commit e129873

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

stubs/openpyxl/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,3 @@ openpyxl.worksheet.smart_tag.CellSmartTagPr.__init__
187187
openpyxl.worksheet.smart_tag.CellSmartTags.__init__
188188
openpyxl.worksheet.table.TableColumn.__init__
189189
openpyxl.worksheet.table.XMLColumnProps.__init__
190-
191-
# FIXME: new stubtest errors from mypy v1.18.1 that need to be looked at more closely.
192-
# See https://github.com/python/typeshed/pull/14699
193-
openpyxl.descriptors.sequence.UniqueSequence.seq_types

stubs/openpyxl/openpyxl/descriptors/sequence.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Sequence(Descriptor[_ContainerT]):
3838

3939
# `_T` is the type of the elements in the sequence.
4040
class UniqueSequence(Sequence[set[_T]]):
41-
seq_types: tuple[type[list[_T]], type[tuple[_T, ...]], type[set[_T]]]
41+
seq_types: tuple[type, ...] # defaults to `list`, `tuple`, `set`
4242
container: type[set[_T]]
4343

4444
# See `Sequence` for the meaning of `_ContainerT`.

0 commit comments

Comments
 (0)