mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -11,35 +11,35 @@ class _SupportsSearch(Protocol):
|
||||
if sys.version_info >= (3, 10):
|
||||
def compile_dir(
|
||||
dir: StrPath,
|
||||
maxlevels: int | None = ...,
|
||||
ddir: StrPath | None = ...,
|
||||
force: bool = ...,
|
||||
rx: _SupportsSearch | None = ...,
|
||||
quiet: int = ...,
|
||||
legacy: bool = ...,
|
||||
optimize: int = ...,
|
||||
workers: int = ...,
|
||||
invalidation_mode: PycInvalidationMode | None = ...,
|
||||
maxlevels: int | None = None,
|
||||
ddir: StrPath | None = None,
|
||||
force: bool = False,
|
||||
rx: _SupportsSearch | None = None,
|
||||
quiet: int = 0,
|
||||
legacy: bool = False,
|
||||
optimize: int = -1,
|
||||
workers: int = 1,
|
||||
invalidation_mode: PycInvalidationMode | None = None,
|
||||
*,
|
||||
stripdir: StrPath | None = ...,
|
||||
prependdir: StrPath | None = ...,
|
||||
limit_sl_dest: StrPath | None = ...,
|
||||
hardlink_dupes: bool = ...,
|
||||
stripdir: StrPath | None = None,
|
||||
prependdir: StrPath | None = None,
|
||||
limit_sl_dest: StrPath | None = None,
|
||||
hardlink_dupes: bool = False,
|
||||
) -> int: ...
|
||||
def compile_file(
|
||||
fullname: StrPath,
|
||||
ddir: StrPath | None = ...,
|
||||
force: bool = ...,
|
||||
rx: _SupportsSearch | None = ...,
|
||||
quiet: int = ...,
|
||||
legacy: bool = ...,
|
||||
optimize: int = ...,
|
||||
invalidation_mode: PycInvalidationMode | None = ...,
|
||||
ddir: StrPath | None = None,
|
||||
force: bool = False,
|
||||
rx: _SupportsSearch | None = None,
|
||||
quiet: int = 0,
|
||||
legacy: bool = False,
|
||||
optimize: int = -1,
|
||||
invalidation_mode: PycInvalidationMode | None = None,
|
||||
*,
|
||||
stripdir: StrPath | None = ...,
|
||||
prependdir: StrPath | None = ...,
|
||||
limit_sl_dest: StrPath | None = ...,
|
||||
hardlink_dupes: bool = ...,
|
||||
stripdir: StrPath | None = None,
|
||||
prependdir: StrPath | None = None,
|
||||
limit_sl_dest: StrPath | None = None,
|
||||
hardlink_dupes: bool = False,
|
||||
) -> int: ...
|
||||
|
||||
elif sys.version_info >= (3, 9):
|
||||
@@ -102,10 +102,10 @@ else:
|
||||
|
||||
def compile_path(
|
||||
skip_curdir: bool = ...,
|
||||
maxlevels: int = ...,
|
||||
force: bool = ...,
|
||||
quiet: int = ...,
|
||||
legacy: bool = ...,
|
||||
optimize: int = ...,
|
||||
invalidation_mode: PycInvalidationMode | None = ...,
|
||||
maxlevels: int = 0,
|
||||
force: bool = False,
|
||||
quiet: int = 0,
|
||||
legacy: bool = False,
|
||||
optimize: int = -1,
|
||||
invalidation_mode: PycInvalidationMode | None = None,
|
||||
) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user