forked from p15670423/monkey
island: Fix return type hint for _get_null_value_for_win32()
The _get_null_value_for_win32() function does not return None, it returns a PyHANDLE object. For the moment, I'm unable to determine the correct way to import PyHANDLE so that it can be specified in the type hint. Since type hints aren't actually enforced, it's not worth the effort to fully solve this at the present time, so the type hint has just been removed.
This commit is contained in:
parent
51aa0d1564
commit
2d18a68787
|
@ -112,6 +112,6 @@ def _get_file_descriptor_for_new_secure_file_windows(path: str) -> int:
|
|||
raise ex
|
||||
|
||||
|
||||
def _get_null_value_for_win32() -> None:
|
||||
def _get_null_value_for_win32():
|
||||
# https://stackoverflow.com/questions/46800142/in-python-with-pywin32-win32job-the-createjobobject-function-how-do-i-pass-nu # noqa: E501
|
||||
return win32job.CreateJobObject(None, "")
|
||||
|
|
Loading…
Reference in New Issue