Skip to content

Commit 06ec3e8

Browse files
committed
Fix mypy warning on Windows
1 parent 100e119 commit 06ec3e8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

OMPython/OMCSession.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,9 @@ def _getuid() -> int:
643643
On Windows, volumes are mapped with all files are chmod ugo+rwx,
644644
so uid does not matter as long as it is not the root user.
645645
"""
646-
return 1000 if sys.platform == 'win32' else os.getuid()
646+
# mypy complained about os.getuid() not being available on
647+
# Windows, hence the type: ignore comment.
648+
return 1000 if sys.platform == 'win32' else os.getuid() # type: ignore
647649

648650
def get_server_address(self) -> Optional[str]:
649651
if self._dockerNetwork == "separate" and isinstance(self._dockerCid, str):

0 commit comments

Comments
 (0)