mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 10:03:32 +08:00
Add more defaults to the stdlib (#9606)
Continuing work towards #8988. The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are: - Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine) - Defaults in non-py311 branches - Defaults for float parameters - Defaults for overloads
This commit is contained in:
@@ -82,19 +82,19 @@ if sys.platform == "win32":
|
||||
physical: str,
|
||||
_logical: str,
|
||||
default: str,
|
||||
componentflags: int | None = ...,
|
||||
componentflags: int | None = None,
|
||||
) -> None: ...
|
||||
def start_component(
|
||||
self,
|
||||
component: str | None = ...,
|
||||
feature: Feature | None = ...,
|
||||
flags: int | None = ...,
|
||||
keyfile: str | None = ...,
|
||||
uuid: str | None = ...,
|
||||
component: str | None = None,
|
||||
feature: Feature | None = None,
|
||||
flags: int | None = None,
|
||||
keyfile: str | None = None,
|
||||
uuid: str | None = None,
|
||||
) -> None: ...
|
||||
def make_short(self, file: str) -> str: ...
|
||||
def add_file(self, file: str, src: str | None = ..., version: str | None = ..., language: str | None = ...) -> str: ...
|
||||
def glob(self, pattern: str, exclude: Container[str] | None = ...) -> list[str]: ...
|
||||
def add_file(self, file: str, src: str | None = None, version: str | None = None, language: str | None = None) -> str: ...
|
||||
def glob(self, pattern: str, exclude: Container[str] | None = None) -> list[str]: ...
|
||||
def remove_pyc(self) -> None: ...
|
||||
|
||||
class Binary:
|
||||
@@ -112,10 +112,10 @@ if sys.platform == "win32":
|
||||
title: str,
|
||||
desc: str,
|
||||
display: int,
|
||||
level: int = ...,
|
||||
parent: Feature | None = ...,
|
||||
directory: str | None = ...,
|
||||
attributes: int = ...,
|
||||
level: int = 1,
|
||||
parent: Feature | None = None,
|
||||
directory: str | None = None,
|
||||
attributes: int = 0,
|
||||
) -> None: ...
|
||||
def set_current(self) -> None: ...
|
||||
|
||||
@@ -124,7 +124,7 @@ if sys.platform == "win32":
|
||||
dlg: Dialog
|
||||
name: str
|
||||
def __init__(self, dlg: Dialog, name: str) -> None: ...
|
||||
def event(self, event: str, argument: str, condition: str = ..., ordering: int | None = ...) -> None: ...
|
||||
def event(self, event: str, argument: str, condition: str = "1", ordering: int | None = None) -> None: ...
|
||||
def mapping(self, event: str, attribute: str) -> None: ...
|
||||
def condition(self, action: str, condition: str) -> None: ...
|
||||
|
||||
@@ -133,7 +133,7 @@ if sys.platform == "win32":
|
||||
property: str
|
||||
index: int
|
||||
def __init__(self, dlg: Dialog, name: str, property: str) -> None: ...
|
||||
def add(self, name: str, x: int, y: int, w: int, h: int, text: str, value: str | None = ...) -> None: ...
|
||||
def add(self, name: str, x: int, y: int, w: int, h: int, text: str, value: str | None = None) -> None: ...
|
||||
|
||||
class Dialog:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user