Skip to content

Commit 693b66a

Browse files
authored
Make Any a proper class instead of an alias to object() (#13520)
1 parent ace1fa9 commit 693b66a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/@tests/stubtest_allowlists/common.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ typing._Final
464464
typing._Final.__init_subclass__
465465
typing\.Protocol
466466
typing(_extensions)?\._TypedDict
467+
typing(_extensions)?\.Any.*
467468
typing(_extensions)?\.Generic
468469
typing(_extensions)?\.TypedDict
469470
typing_extensions\.ParamSpec.*

stdlib/typing.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ if sys.version_info >= (3, 12):
130130
if sys.version_info >= (3, 13):
131131
__all__ += ["get_protocol_members", "is_protocol", "NoDefault", "TypeIs", "ReadOnly"]
132132

133-
Any = object()
134-
133+
class Any: ...
135134
class _Final: ...
136135

137136
def final(f: _T) -> _T: ...

0 commit comments

Comments
 (0)