8000 os: improve bytes handling by JelleZijlstra · Pull Request #9072 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content
8000

os: improve bytes handling #9072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
  • Loading branch information
pre-commit-ci[bot] committed Nov 3, 2022
commit d5f6f8c937121d8b0b192f02fa320a78c40b71a0
8 changes: 7 additions & 1 deletion stdlib/os/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ if sys.platform != "win32":
def getenvb(key: bytes, default: _T) -> bytes | _T: ...
def putenv(__name: StrOrBytesPath, __value: StrOrBytesPath) -> None: ...
def unsetenv(__name: StopAsyncIteration) -> None: ...

else:
def putenv(__name: str, __value: str) -> None: ...

Expand Down Expand Up @@ -777,7 +778,12 @@ if sys.platform != "win32":
) -> Iterator[tuple[str, list[str], list[str], int]]: ...
@overload
def fwalk(
top: BytesPath, topdown: bool = ..., onerror: _OnError | None = ..., *, follow_symlinks: bool = ..., dir_fd: int | None = ...
top: BytesPath,
topdown: bool = ...,
onerror: _OnError | None = ...,
*,
follow_symlinks: bool = ...,
dir_fd: int | None = ...,
) -> Iterator[tuple[bytes, list[bytes], list[bytes], int]]: ...
if sys.platform == "linux":
def getxattr(path: _FdOrAnyPath, attribute: StrOrBytesPath, *, follow_symlinks: bool = ...) -> bytes: ...
Expand Down
0