ctypes: fix arg name on windows (#4111)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-27 20:21:45 -07:00
committed by GitHub
parent 1dc585385a
commit c988348179
2 changed files with 1 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ def sizeof(obj_or_type: _UnionT[_CData, Type[_CData]]) -> int: ...
def string_at(address: _CVoidConstPLike, size: int = ...) -> bytes: ...
if sys.platform == 'win32':
def WinError(code: Optional[int] = ...,
desc: Optional[str] = ...) -> WindowsError: ...
descr: Optional[str] = ...) -> OSError: ...
def wstring_at(address: _CVoidConstPLike, size: int = ...) -> str: ...
class _SimpleCData(Generic[_T], _CData):

View File

@@ -1,5 +1,4 @@
ctypes.GetLastError # Is actually a pointer
ctypes.WinError # Parameter name mismatch
locale.[A-Z0-9_]+ # Constants that should be moved to _locale and re-exported conditionally
locale.nl_langinfo # Function that should be moved to _locale and re-exported conditionally
os.path.join # Parameter name mismatch