Skip to content

Commit e83b820

Browse files
DOC: Correct error message in AbstractMethodError for methodtype argument (#61827)
* DOC: Correct error message in AbstractMethodError for methodtype argument * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent fd7bfaa commit e83b820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/errors/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def __init__(self, class_instance, methodtype: str = "method") -> None:
379379
types = {"method", "classmethod", "staticmethod", "property"}
380380
if methodtype not in types:
381381
raise ValueError(
382-
f"methodtype must be one of {methodtype}, got {types} instead."
382+
f"methodtype must be one of {types}, got {methodtype} instead."
383383
)
384384
self.methodtype = methodtype
385385
self.class_instance = class_instance

0 commit comments

Comments
 (0)