Skip to content

Commit a03006e

Browse files
committed
[pylint] fix 'W0237: Parameter 'expr' has been renamed to 'command' in overriding 'OMCSessionZMQ.sendExpression' method (arguments-renamed)'
1 parent 1e67353 commit a03006e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

OMPython/OMCSession.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,14 @@ def omcpath_tempdir(self, tempdir_base: Optional[OMPathABC] = None) -> OMPathABC
282282
def execute(self, command: str):
283283
return self.omc_process.execute(command=command)
284284

285-
def sendExpression(self, command: str, parsed: bool = True) -> Any:
285+
def sendExpression(self, command: str, parsed: bool = True) -> Any: # pylint: disable=W0237
286286
"""
287287
Send an expression to the OMC server and return the result.
288288
289-
The complete error handling of the OMC result is done within this method using '"getMessagesStringInternal()'.
289+
The complete error handling of the OMC result is done within this method using 'getMessagesStringInternal()'.
290290
Caller should only check for OMCSessionException.
291+
292+
Compatibility: 'command' was renamed to 'expr'
291293
"""
292294
return self.omc_process.sendExpression(expr=command, parsed=parsed)
293295

0 commit comments

Comments
 (0)