Skip to content

Commit 0aac6cf

Browse files
simonjayhawkinsroberthdevries
authored andcommitted
D409: Section underline should match the length of its name (pandas-dev#31958)
1 parent 9a72da4 commit 0aac6cf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pandas/core/indexes/multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,7 @@ def _lexsort_depth(self) -> int:
16851685
MultiIndex that are sorted lexically
16861686
16871687
Returns
1688-
------
1688+
-------
16891689
int
16901690
"""
16911691
int64_codes = [ensure_int64(level_codes) for level_codes in self.codes]

pandas/tests/arithmetic/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def assert_invalid_addsub_type(left, right, msg=None):
1313
Helper to assert that left and right can be neither added nor subtracted.
1414
1515
Parameters
16-
---------
16+
----------
1717
left : object
1818
right : object
1919
msg : str or None, default None

pandas/util/_test_decorators.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ def test_foo():
4040

4141
def safe_import(mod_name: str, min_version: Optional[str] = None):
4242
"""
43-
Parameters:
44-
-----------
43+
Parameters
44+
----------
4545
mod_name : str
4646
Name of the module to be imported
4747
min_version : str, default None
4848
Minimum required version of the specified mod_name
4949
50-
Returns:
51-
--------
50+
Returns
51+
-------
5252
object
5353
The imported module if successful, or False
5454
"""

0 commit comments

Comments
 (0)