Skip to content
Snippets Groups Projects
Verified Commit 28f6f27f authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Rename method to not clash with the classmethod builtin

parent 340bde8b
No related branches found
No related tags found
No related merge requests found
Pipeline #1070 passed with warnings
......@@ -144,7 +144,7 @@ class ExtensibleModel(CRUDMixin):
cls._safe_add(func, func.__name__)
@classmethod
def classmethod(cls, func: Callable[[], Any], name: Optional[str] = None) -> None:
def class_method(cls, func: Callable[[], Any], name: Optional[str] = None) -> None:
""" Adds the passed callable as a classmethod. """
cls._safe_add(classmethod(func), func.__name__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment