Skip to content

Commit 35b63d1

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

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
@@ -274,12 +274,14 @@ def omcpath_tempdir(self, tempdir_base: Optional[OMPathABC] = None) -> OMPathABC
274274
def execute(self, command: str):
275275
return self.omc_process.execute(command=command)
276276

277-
def sendExpression(self, command: str, parsed: bool = True) -> Any:
277+
def sendExpression(self, command: str, parsed: bool = True) -> Any: # pylint: disable=W0237
278278
"""
279279
Send an expression to the OMC server and return the result.
280280
281-
The complete error handling of the OMC result is done within this method using '"getMessagesStringInternal()'.
281+
The complete error handling of the OMC result is done within this method using 'getMessagesStringInternal()'.
282282
Caller should only check for OMCSessionException.
283+
284+
Compatibility: 'command' was renamed to 'expr'
283285
"""
284286
return self.omc_process.sendExpression(expr=command, parsed=parsed)
285287

0 commit comments

Comments
 (0)