From 5d0538d2357259c49ea6abd7793584bbf04091d2 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Thu, 19 May 2022 13:33:51 -0500 Subject: Fix invalid Python overrides - mismatched method type - mismatched parameter names --- mesonbuild/compilers/cpp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mesonbuild/compilers/cpp.py') diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 4c24767ca..253dc42dd 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -60,9 +60,7 @@ def non_msvc_eh_options(eh: str, args: T.List[str]) -> None: 'You may want to set eh to \'default\'.') class CPPCompiler(CLikeCompiler, Compiler): - - @classmethod - def attribute_check_func(cls, name: str) -> str: + def attribute_check_func(self, name: str) -> str: try: return CXX_FUNC_ATTRIBUTES.get(name, C_FUNC_ATTRIBUTES[name]) except KeyError: -- cgit v1.2.3