Skip to content

Commit 9498481

Browse files
committed
DOC: Fix validation error RT01 in pandas/core/dtypes (pandas-dev#25356)
1 parent 648d156 commit 9498481

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

pandas/core/dtypes/dtypes.py

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ def register_extension_dtype(cls):
2727
This enables operations like ``.astype(name)`` for the name
2828
of the ExtensionDtype.
2929
30+
Returns
31+
-------
32+
callable
33+
A class decorator.
34+
3035
Examples
3136
--------
3237
>>> from pandas.api.extensions import register_extension_dtype

pandas/core/dtypes/inference.py

+4
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,10 @@ def is_hashable(obj):
436436
Distinguish between these and other types by trying the call to hash() and
437437
seeing if they raise TypeError.
438438
439+
Returns
440+
-------
441+
bool
442+
439443
Examples
440444
--------
441445
>>> a = ([],)

0 commit comments

Comments
 (0)