Skip to content

CLN: D300 Use """triple double quotes""" #31888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/core/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,7 @@ def wrapper3(self, pat, na=np.nan):


def copy(source):
"Copy a docstring from another source function (if present)"
"""Copy a docstring from another source function (if present)"""

def do_copy(target):
if source.__doc__:
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/clipboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def copy_osx_pyobjc(text):
board.setData_forType_(newData, AppKit.NSStringPboardType)

def paste_osx_pyobjc():
"Returns contents of clipboard"
"""Returns contents of clipboard"""
board = AppKit.NSPasteboard.generalPasteboard()
content = board.stringForType_(AppKit.NSStringPboardType)
return content
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2488,7 +2488,7 @@ def get_chunk(self, size=None):
def _convert_data(self, data):
# apply converters
def _clean_mapping(mapping):
"converts col numbers to names"
"""converts col numbers to names"""
clean = {}
for col, v in mapping.items():
if isinstance(col, int) and col not in self.orig_names:
Expand Down
8 changes: 4 additions & 4 deletions pandas/plotting/_matplotlib/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ def __init__(
self.finder = get_finder(freq)

def _get_default_locs(self, vmin, vmax):
"Returns the default locations of ticks."
"""Returns the default locations of ticks."""

if self.plot_obj.date_axis_info is None:
self.plot_obj.date_axis_info = self.finder(vmin, vmax, self.freq)
Expand All @@ -993,7 +993,7 @@ def _get_default_locs(self, vmin, vmax):
return np.compress(locator["maj"], locator["val"])

def __call__(self):
"Return the locations of the ticks."
"""Return the locations of the ticks."""
# axis calls Locator.set_axis inside set_m<xxxx>_formatter

vi = tuple(self.axis.get_view_interval())
Expand Down Expand Up @@ -1062,7 +1062,7 @@ def __init__(self, freq, minor_locator=False, dynamic_mode=True, plot_obj=None):
self.finder = get_finder(freq)

def _set_default_format(self, vmin, vmax):
"Returns the default ticks spacing."
"""Returns the default ticks spacing."""

if self.plot_obj.date_axis_info is None:
self.plot_obj.date_axis_info = self.finder(vmin, vmax, self.freq)
Expand All @@ -1076,7 +1076,7 @@ def _set_default_format(self, vmin, vmax):
return self.formatdict

def set_locs(self, locs):
"Sets the locations of the ticks"
"""Sets the locations of the ticks"""
# don't actually use the locs. This is just needed to work with
# matplotlib. Force to use vmin, vmax

Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/scalar/period/test_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def test_strftime(self):


class TestPeriodProperties:
"Test properties such as year, month, weekday, etc...."
"""Test properties such as year, month, weekday, etc...."""

@pytest.mark.parametrize("freq", ["A", "M", "D", "H"])
def test_is_leap_year(self, freq):
Expand Down