Skip to content

Commit 8586c08

Browse files
committed
DOC: Correct error message in AbstractMethodError for methodtype argument
1 parent e635c3e commit 8586c08

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)