8000 Remove `webbrowser.MacOSX` for Python 3.13 (#12390) · python/typeshed@b6c089d · GitHub
[go: up one dir, main page]

Skip to content

Commit b6c089d

Browse files
authored
Remove webbrowser.MacOSX for Python 3.13 (#12390)
1 parent 7d82517 commit b6c089d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

stdlib/@tests/stubtest_allowlists/darwin-py313.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ fcntl.F_OFD_SETLKW
66
fcntl.F_RDAHEAD
77
fcntl.F_SETNOSIGPIPE
88
posixpath.splitroot
9-
webbrowser.MacOSX
109

1110
# TODO: fix
1211
_curses.unget_wch

stdlib/webbrowser.pyi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import sys
22
from abc import abstractmethod
33
from collections.abc import Callable, Sequence
44
from typing import Literal
5+
from typing_extensions import deprecated
56

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

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

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

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

0 commit comments

Comments
 (0)
0