Commit f9059e58 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

[PyCharm Inspector] ABC methods could indeed be static

parent f94538fe
......@@ -48,6 +48,7 @@ class ASynchronousToolGlueGenerator:
########################################################
# Parts to possibly override for each synchronous tool
# noinspection PyMethodMayBeStatic
def CleanNameAsToolWants(self, name): # pylint: disable=no-self-use
return re.sub(r'[^a-zA-Z0-9_]', '_', name)
......
......@@ -66,9 +66,11 @@ class SynchronousToolGlueGenerator:
########################################################
# Parts to possibly override for each synchronous tool
# noinspection PyMethodMayBeStatic
def CleanNameAsToolWants(self, name): # pylint: disable=no-self-use
return re.sub(r'[^a-zA-Z0-9_]', '_', name)
# noinspection PyMethodMayBeStatic
def CleanNameAsADAWants(self, name): # pylint: disable=no-self-use
return re.sub(r'[^a-zA-Z0-9_]', '_', name)
......
......@@ -30,15 +30,18 @@ from commonPy.asnAST import (
class RecursiveMapper:
# noinspection PyMethodMayBeStatic
def maybeElse(self, childNo: int) -> str: # pylint: disable=no-self-use
if childNo == 1:
return ""
else:
return "else "
# noinspection PyMethodMayBeStatic
def CleanName(self, fieldName: str) -> str: # pylint: disable=no-self-use
return re.sub(r'[^a-zA-Z0-9_]', '_', fieldName)
# noinspection PyMethodMayBeStatic
def Version(self): # pylint: disable=no-self-use
panicWithCallStack("Method undefined in a RecursiveMapper...")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment