Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 317465b

Browse files
committed
TYP: PieContainer does not inherit from Container
1 parent 1aee967 commit 317465b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

ci/mypy-stubtest-allowlist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,8 @@ matplotlib\.animation\.EventSourceProtocol
5454
# https://github.com/python/mypy/issues/19877
5555
matplotlib\.ft2font\.GlyphIndexType\.__init__
5656

57+
# getitem method only exists for 3.11 deprecation backcompatability
58+
matplotlib.container.PieContainer.__getitem__
59+
5760
# 3.12 deprecation
5861
matplotlib\.axes\._base\._AxesBase\.ArtistList

lib/matplotlib/container.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ErrorbarContainer(Container):
5757
**kwargs
5858
) -> None: ...
5959

60-
class PieContainer(Container):
60+
class PieContainer:
6161
wedges: list[Wedge]
6262
def __init__(
6363
self,
@@ -74,6 +74,7 @@ class PieContainer(Container):
7474
def add_texts(self,
7575
texts: list[Text],
7676
) -> None: ...
77+
def remove(self) -> None: ...
7778

7879
class StemContainer(Container):
7980
markerline: Line2D

0 commit comments

Comments
 (0)