@@ -101,7 +101,8 @@ def __hash__(self):
101
101
102
102
103
103
class CallbackRegistry :
104
- """Handle registering and disconnecting for a set of signals and callbacks:
104
+ """
105
+ Handle registering and disconnecting for a set of signals and callbacks:
105
106
106
107
>>> def oneat(x):
107
108
... print('eat', x)
@@ -1869,7 +1870,8 @@ def _lock_path(path):
1869
1870
def _topmost_artist (
1870
1871
artists ,
1871
1872
_cached_max = functools .partial (max , key = operator .attrgetter ("zorder" ))):
1872
- """Get the topmost artist of a list.
1873
+ """
1874
+ Get the topmost artist of a list.
1873
1875
1874
1876
In case of a tie, return the *last* of the tied artists, as it will be
1875
1877
drawn on top of the others. `max` returns the first maximum in case of
@@ -1879,7 +1881,8 @@ def _topmost_artist(
1879
1881
1880
1882
1881
1883
def _str_equal (obj , s ):
1882
- """Return whether *obj* is a string equal to string *s*.
1884
+ """
1885
+ Return whether *obj* is a string equal to string *s*.
1883
1886
1884
1887
This helper solely exists to handle the case where *obj* is a numpy array,
1885
1888
because in such cases, a naive ``obj == s`` would yield an array, which
@@ -1889,7 +1892,8 @@ def _str_equal(obj, s):
1889
1892
1890
1893
1891
1894
def _str_lower_equal (obj , s ):
1892
- """Return whether *obj* is a string equal, when lowercased, to string *s*.
1895
+ """
1896
+ Return whether *obj* is a string equal, when lowercased, to string *s*.
1893
1897
1894
1898
This helper solely exists to handle the case where *obj* is a numpy array,
1895
1899
because in such cases, a naive ``obj == s`` would yield an array, which
@@ -1899,7 +1903,8 @@ def _str_lower_equal(obj, s):
1899
1903
1900
1904
1901
1905
def _define_aliases (alias_d , cls = None ):
1902
- """Class decorator for defining property aliases.
1906
+ """
1907
+ Class decorator for defining property aliases.
1903
1908
1904
1909
Use as ::
1905
1910
@@ -2094,7 +2099,8 @@ def _array_patch_perimeters(x, rstride, cstride):
2094
2099
2095
2100
@contextlib .contextmanager
2096
2101
def _setattr_cm (obj , ** kwargs ):
2097
- """Temporarily set some attributes; restore original state at context exit.
2102
+ """
2103
+ Temporarily set some attributes; restore original state at context exit.
2098
2104
"""
2099
2105
sentinel = object ()
2100
2106
origs = [(attr , getattr (obj , attr , sentinel )) for attr in kwargs ]
0 commit comments