8000 Remove `webbrowser.MacOSX` for Python 3.13 by max-muoto · Pull Request #12390 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Remove webbrowser.MacOSX for Python 3.13 #12390

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 5 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion stdlib/@tests/stubtest_allowlists/darwin-py313.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ fcntl.F_OFD_SETLKW
fcntl.F_RDAHEAD
fcntl.F_SETNOSIGPIPE
posixpath.splitroot
webbrowser.MacOSX

# TODO: fix
_curses.unget_wch
Expand Down
7 changes: 5 additions & 2 deletions stdlib/webbrowser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import sys
from abc import abstractmethod
from collections.abc import Callable, Sequence
from typing import Literal
from typing_extensions import deprecated

__all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]

Expand Down Expand Up @@ -62,8 +63,10 @@ if sys.platform == "win32":
def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool: ...

if sys.platform == "darwin":
class MacOSX(BaseBrowser):
def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool: ...
if sys.version_info < (3, 13):
@deprecated("Deprecated in 3.11, to be removed in 3.13.")
class MacOSX(BaseBrowser):
def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool: ...

class MacOSXOSAScript(BaseBrowser): # In runtime this class does not have `name` and `basename`
if sys.version_info >= (3, 11):
Expand Down
0