From 8586c08f908cf10cc7269c2f7037ff1dac77e0da Mon Sep 17 00:00:00 2001 From: Maaz Bin Asif Date: Fri, 11 Jul 2025 02:04:13 +0500 Subject: [PATCH 1/2] DOC: Correct error message in AbstractMethodError for methodtype argument --- pandas/errors/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index 2b5bc450e41d6..ffe4cec8c0411 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 From c063485b647c73cf9f034f54a228a00d836d731a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 18:51:23 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pandas/errors/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index ffe4cec8c0411..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 {types}, got {methodtype} instead." + f"methodtype must be one of {types}, got {methodtype} instead." ) self.methodtype = methodtype self.class_instance = class_instance