Skip to content

Commit f8c5a24

Browse files
fumitohAnkurDedania
authored andcommitted
DOC: Fix to docstrings of is_type_factory and is_instance_factory (pandas-dev#15499)
Closes pandas-dev#15485
1 parent 6045e79 commit f8c5a24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/config.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,8 @@ def is_type_factory(_type):
747747
748748
Returns
749749
-------
750-
validator - a function of a single argument x , which returns the
751-
True if type(x) is equal to `_type`
750+
validator - a function of a single argument x , which raises
751+
ValueError if type(x) is not equal to `_type`
752752
753753
"""
754754

@@ -768,8 +768,8 @@ def is_instance_factory(_type):
768768
769769
Returns
770770
-------
771-
validator - a function of a single argument x , which returns the
772-
True if x is an instance of `_type`
771+
validator - a function of a single argument x , which raises
772+
ValueError if x is not an instance of `_type`
773773
774774
"""
775775
if isinstance(_type, (tuple, list)):

0 commit comments

Comments
 (0)