FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Backport PR #29617 on branch v3.10.x (DOC: Add docstrings to matplotlib.cbook.GrouperView) by meeseeksmachine · Pull Request #29627 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
14 changes: 12 additions & 2 deletions lib/matplotlib/cbook.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,18 @@ class GrouperView:
def __init__(self, grouper): self._grouper = grouper
def __contains__(self, item): return item in self._grouper
def __iter__(self): return iter(self._grouper)
def joined(self, a, b): return self._grouper.joined(a, b)
def get_siblings(self, a): return self._grouper.get_siblings(a)

def joined(self, a, b):
"""
Return whether *a* and *b* are members of the same set.
"""
return self._grouper.joined(a, b)

def get_siblings(self, a):
"""
Return all of the items joined with *a*, including itself.
"""
return self._grouper.get_siblings(a)


def simple_linear_interpolation(a, steps):
Expand Down

Back | FazBrowse Home | New Git URL