diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index 2b5bc450e41d6..d1ca056ffcb19 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -379,7 +379,7 @@ def __init__(self, class_instance, methodtype: str = "method") -> None: types = {"method", "classmethod", "staticmethod", "property"} if methodtype not in types: raise ValueError( - f"methodtype must be one of {methodtype}, got {types} instead." + f"methodtype must be one of {types}, got {methodtype} instead." ) self.methodtype = methodtype self.class_instance = class_instance