Skip to content

Commit 2baab7c

Browse files
committed
[OMCSession] move call to set_timeout() to __post_init__
1 parent 2c92c00 commit 2baab7c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

OMPython/OMCSession.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,9 +642,7 @@ def __init__(
642642
"""
643643

644644
# store variables
645-
# set_timeout() is used to define the value of _timeout as it includes additional checks
646-
self._timeout: float
647-
self.set_timeout(timeout=timeout)
645+
self._timeout = timeout
648646
# generate a random string for this instance of OMC
649647
self._random_string = uuid.uuid4().hex
650648
# get a temporary directory

0 commit comments

Comments
 (0)