Skip to content

Commit

Permalink
Update compileall.compile_{dir, file, path} to return bool (#13504)
Browse files Browse the repository at this point in the history
  • Loading branch information
ichard26 authored Feb 15, 2025
1 parent cc8ca93 commit 654d8c2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions stdlib/compileall.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if sys.version_info >= (3, 10):
prependdir: StrPath | None = None,
limit_sl_dest: StrPath | None = None,
hardlink_dupes: bool = False,
) -> int: ...
) -> bool: ...
def compile_file(
fullname: StrPath,
ddir: StrPath | None = None,
Expand All @@ -40,7 +40,7 @@ if sys.version_info >= (3, 10):
prependdir: StrPath | None = None,
limit_sl_dest: StrPath | None = None,
hardlink_dupes: bool = False,
) -> int: ...
) -> bool: ...

elif sys.version_info >= (3, 9):
def compile_dir(
Expand All @@ -59,7 +59,7 @@ elif sys.version_info >= (3, 9):
prependdir: StrPath | None = None,
limit_sl_dest: StrPath | None = None,
hardlink_dupes: bool = False,
) -> int: ...
) -> bool: ...
def compile_file(
fullname: StrPath,
ddir: StrPath | None = None,
Expand All @@ -74,7 +74,7 @@ elif sys.version_info >= (3, 9):
prependdir: StrPath | None = None,
limit_sl_dest: StrPath | None = None,
hardlink_dupes: bool = False,
) -> int: ...
) -> bool: ...

else:
def compile_dir(
Expand All @@ -88,7 +88,7 @@ else:
optimize: int = -1,
workers: int = 1,
invalidation_mode: PycInvalidationMode | None = None,
) -> int: ...
) -> bool: ...
def compile_file(
fullname: StrPath,
ddir: StrPath | None = None,
Expand All @@ -98,7 +98,7 @@ else:
legacy: bool = False,
optimize: int = -1,
invalidation_mode: PycInvalidationMode | None = None,
) -> int: ...
) -> bool: ...

def compile_path(
skip_curdir: bool = ...,
Expand All @@ -108,4 +108,4 @@ def compile_path(
legacy: bool = False,
optimize: int = -1,
invalidation_mode: PycInvalidationMode | None = None,
) -> int: ...
) -> bool: ...

0 comments on commit 654d8c2

Please # to comment.