Skip to content

Commit 754336e

Browse files
Resolve remaining SS04 errors
1 parent b497384 commit 754336e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/core/groupby/base.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ class where members are defined.
126126
property_wrapper_template = \
127127
"""@property
128128
def %(name)s(self) :
129-
\"""
130-
%(doc)s
131-
\"""
129+
\"""%(doc)s\"""
132130
return self.__getattr__('%(name)s')"""
133131

134132
for name in whitelist:
@@ -139,7 +137,7 @@ def %(name)s(self) :
139137
# ugly, but we need the name string itself in the method.
140138
f = getattr(klass, name)
141139
doc = f.__doc__
142-
doc = doc.strip() if type(doc) == str else ''
140+
doc = doc if type(doc) == str else ''
143141
if isinstance(f, types.MethodType):
144142
wrapper_template = method_wrapper_template
145143
decl, args = make_signature(f)

0 commit comments

Comments
 (0)