8000 Remove · python/typeshed@0a55a3f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a55a3f

Browse files
committed
Remove
1 parent 3030f01 commit 0a55a3f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ posixpath.splitroot
99
posix.waitid
1010
posix.waitid_result
1111
readline.backend
12-
webbrowser.MacOSX
1312

1413
# TODO: fix
1514
_curses.unget_wch

stdlib/webbrowser.pyi

Lines changed: 10 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,15 @@ 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+
if sys.version_info >= (3, 11):
68+
@deprecated("Deprecated in 3.11, to be removed in 3.13.")
69+
class MacOSX(BaseBrowser):
70+
def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool: ...
71+
72+
else:
73+
class MacOSX(BaseBrowser):
74+
def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool: ...
6775

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

0 commit comments

Comments
 (0)
0