Skip to content
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

Type and mark as final module-level dunders not meant to be overwritten in stdlib/ #9709

Merged
merged 4 commits into from
Feb 12, 2023
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
PR comment
Avasam committed Feb 12, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 23744af15f473e3d40b6f2cfa55338eaa5f2f2fc
3 changes: 1 addition & 2 deletions stdlib/sys.pyi
Original file line number Diff line number Diff line change
@@ -278,11 +278,10 @@ if sys.platform == "win32":

def intern(__string: str) -> str: ...
def is_finalizing() -> bool: ...
def breakpointhook(*args: Any, **kwargs: Any) -> Any: ...

__breakpointhook__ = breakpointhook # Contains the original value of breakpointhook

def breakpointhook(*args: Any, **kwargs: Any) -> Any: ...

if sys.platform != "win32":
def setdlopenflags(__flags: int) -> None: ...