We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bceef2 commit fad690aCopy full SHA for fad690a
1 file changed
OMPython/OMCSession.py
@@ -306,13 +306,13 @@ def __del__(self):
306
307
self.omc_zmq = None
308
309
- def execute(self, command):
+ def execute(self, command: str):
310
warnings.warn("This function is depreciated and will be removed in future versions; "
311
"please use sendExpression() instead", DeprecationWarning, stacklevel=1)
312
313
return self.sendExpression(command, parsed=False)
314
315
- def sendExpression(self, command, parsed=True):
+ def sendExpression(self, command: str, parsed: bool = True):
316
p = self.omc_process.poll() # check if process is running
317
if p is not None:
318
raise OMCSessionException("Process Exited, No connection with OMC. Create a new instance of OMCSessionZMQ!")
0 commit comments