stdlib: add argument default values (#9501)

This commit is contained in:
Jelle Zijlstra
2023-01-18 00:37:34 -08:00
committed by GitHub
parent 6cb934291f
commit ddfaca3200
272 changed files with 2529 additions and 2467 deletions

View File

@@ -14,35 +14,35 @@ _FileModuleFunction: TypeAlias = tuple[str, str | None, str]
class CoverageResults:
def __init__(
self,
counts: dict[tuple[str, int], int] | None = ...,
calledfuncs: dict[_FileModuleFunction, int] | None = ...,
infile: StrPath | None = ...,
callers: dict[tuple[_FileModuleFunction, _FileModuleFunction], int] | None = ...,
outfile: StrPath | None = ...,
counts: dict[tuple[str, int], int] | None = None,
calledfuncs: dict[_FileModuleFunction, int] | None = None,
infile: StrPath | None = None,
callers: dict[tuple[_FileModuleFunction, _FileModuleFunction], int] | None = None,
outfile: StrPath | None = None,
) -> None: ... # undocumented
def update(self, other: CoverageResults) -> None: ...
def write_results(self, show_missing: bool = ..., summary: bool = ..., coverdir: StrPath | None = ...) -> None: ...
def write_results(self, show_missing: bool = True, summary: bool = False, coverdir: StrPath | None = None) -> None: ...
def write_results_file(
self, path: StrPath, lines: Sequence[str], lnotab: Any, lines_hit: Mapping[int, int], encoding: str | None = ...
self, path: StrPath, lines: Sequence[str], lnotab: Any, lines_hit: Mapping[int, int], encoding: str | None = None
) -> tuple[int, int]: ...
def is_ignored_filename(self, filename: str) -> bool: ... # undocumented
class Trace:
def __init__(
self,
count: int = ...,
trace: int = ...,
countfuncs: int = ...,
countcallers: int = ...,
count: int = 1,
trace: int = 1,
countfuncs: int = 0,
countcallers: int = 0,
ignoremods: Sequence[str] = ...,
ignoredirs: Sequence[str] = ...,
infile: StrPath | None = ...,
outfile: StrPath | None = ...,
timing: bool = ...,
infile: StrPath | None = None,
outfile: StrPath | None = None,
timing: bool = False,
) -> None: ...
def run(self, cmd: str | types.CodeType) -> None: ...
def runctx(
self, cmd: str | types.CodeType, globals: Mapping[str, Any] | None = ..., locals: Mapping[str, Any] | None = ...
self, cmd: str | types.CodeType, globals: Mapping[str, Any] | None = None, locals: Mapping[str, Any] | None = None
) -> None: ...
if sys.version_info >= (3, 9):
def runfunc(self, __func: Callable[_P, _T], *args: _P.args, **kw: _P.kwargs) -> _T: ...