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: ...@@ -48,6 +48,7 @@ class ASynchronousToolGlueGenerator:
######################################################## ########################################################
# Parts to possibly override for each synchronous tool # Parts to possibly override for each synchronous tool
# noinspection PyMethodMayBeStatic
def CleanNameAsToolWants(self, name): # pylint: disable=no-self-use def CleanNameAsToolWants(self, name): # pylint: disable=no-self-use
return re.sub(r'[^a-zA-Z0-9_]', '_', name) return re.sub(r'[^a-zA-Z0-9_]', '_', name)
......
...@@ -66,9 +66,11 @@ class SynchronousToolGlueGenerator: ...@@ -66,9 +66,11 @@ class SynchronousToolGlueGenerator:
######################################################## ########################################################
# Parts to possibly override for each synchronous tool # Parts to possibly override for each synchronous tool
# noinspection PyMethodMayBeStatic
def CleanNameAsToolWants(self, name): # pylint: disable=no-self-use def CleanNameAsToolWants(self, name): # pylint: disable=no-self-use
return re.sub(r'[^a-zA-Z0-9_]', '_', name) return re.sub(r'[^a-zA-Z0-9_]', '_', name)
# noinspection PyMethodMayBeStatic
def CleanNameAsADAWants(self, name): # pylint: disable=no-self-use def CleanNameAsADAWants(self, name): # pylint: disable=no-self-use
return re.sub(r'[^a-zA-Z0-9_]', '_', name) return re.sub(r'[^a-zA-Z0-9_]', '_', name)
......
...@@ -30,15 +30,18 @@ from commonPy.asnAST import ( ...@@ -30,15 +30,18 @@ from commonPy.asnAST import (
class RecursiveMapper: class RecursiveMapper:
# noinspection PyMethodMayBeStatic
def maybeElse(self, childNo: int) -> str: # pylint: disable=no-self-use def maybeElse(self, childNo: int) -> str: # pylint: disable=no-self-use
if childNo == 1: if childNo == 1:
return "" return ""
else: else:
return "else " return "else "
# noinspection PyMethodMayBeStatic
def CleanName(self, fieldName: str) -> str: # pylint: disable=no-self-use def CleanName(self, fieldName: str) -> str: # pylint: disable=no-self-use
return re.sub(r'[^a-zA-Z0-9_]', '_', fieldName) return re.sub(r'[^a-zA-Z0-9_]', '_', fieldName)
# noinspection PyMethodMayBeStatic
def Version(self): # pylint: disable=no-self-use def Version(self): # pylint: disable=no-self-use
panicWithCallStack("Method undefined in a RecursiveMapper...") 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