diff --git a/stubs/pywin32/_win32typing.pyi b/stubs/pywin32/_win32typing.pyi index 9d730bbd4..c36b758ba 100644 --- a/stubs/pywin32/_win32typing.pyi +++ b/stubs/pywin32/_win32typing.pyi @@ -1173,22 +1173,14 @@ class PyMSG: ... @final class PyNETRESOURCE: - @property - def dwScope(self) -> int: ... - @property - def dwType(self) -> int: ... - @property - def dwDisplayType(self) -> int: ... - @property - def dwUsage(self) -> int: ... - @property - def lpComment(self): ... - @property - def lpLocalName(self): ... - @property - def lpProvider(self): ... - @property - def lpRemoteName(self): ... + dwScope: int + dwType: int + dwDisplayType: int + dwUsage: int + lpComment: str | None + lpLocalName: str | None + lpProvider: str | None + lpRemoteName: str | None class PyNET_VALIDATE_AUTHENTICATION_INPUT_ARG: ... class PyNET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG: ... diff --git a/stubs/pywin32/win32/win32wnet.pyi b/stubs/pywin32/win32/win32wnet.pyi index 320fac3a2..799284d64 100644 --- a/stubs/pywin32/win32/win32wnet.pyi +++ b/stubs/pywin32/win32/win32wnet.pyi @@ -12,7 +12,7 @@ def WNetAddConnection2( Flags: int = ..., ) -> None: ... def WNetAddConnection3( - HwndParent: int, + HwndParent: int | _win32typing.PyHANDLE, NetResource: _win32typing.PyNETRESOURCE, Password: Incomplete | None = ..., UserName: Incomplete | None = ..., @@ -20,8 +20,8 @@ def WNetAddConnection3( ) -> None: ... def WNetCancelConnection2(name: str, flags, force) -> None: ... def WNetOpenEnum(scope, _type, usage, resource: _win32typing.PyNETRESOURCE) -> int: ... -def WNetCloseEnum(handle: int) -> None: ... -def WNetEnumResource(handle: int, maxExtries: int = ...) -> list[_win32typing.PyNETRESOURCE]: ... +def WNetCloseEnum(handle: _win32typing.PyHANDLE) -> None: ... +def WNetEnumResource(handle: _win32typing.PyHANDLE, maxExtries: int = ...) -> list[_win32typing.PyNETRESOURCE]: ... def WNetGetUser(connection: str | None = ...) -> str: ... def WNetGetUniversalName(localPath: str, infoLevel) -> str: ... def WNetGetResourceInformation(NetResource: _win32typing.PyNETRESOURCE) -> tuple[_win32typing.PyNETRESOURCE, Incomplete]: ...