Skip to content

Commit fad690a

Browse files
committed
[OMCSessionZMQ] add type hints
1 parent 7bceef2 commit fad690a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/OMCSession.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,13 @@ def __del__(self):
306306

307307
self.omc_zmq = None
308308

309-
def execute(self, command):
309+
def execute(self, command: str):
310310
warnings.warn("This function is depreciated and will be removed in future versions; "
311311
"please use sendExpression() instead", DeprecationWarning, stacklevel=1)
312312

313313
return self.sendExpression(command, parsed=False)
314314

315-
def sendExpression(self, command, parsed=True):
315+
def sendExpression(self, command: str, parsed: bool = True):
316316
p = self.omc_process.poll() # check if process is running
317317
if p is not None:
318318
raise OMCSessionException("Process Exited, No connection with OMC. Create a new instance of OMCSessionZMQ!")

0 commit comments

Comments
 (0)