Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __new__
Method
__new__
Lib/typing.py:623–626 ·
view source on GitHub ↗
(cls, *args, **kwargs)
Source
from the content-addressed store, hash-verified
621
""
"
622
623
def
__new__(cls, *args, **kwargs):
624
if
cls is Any:
625
raise
TypeError(
"Any cannot be instantiated"
)
626
return
super().__new__(cls)
627
628
629
@_SpecialForm
Callers
4
__new__
Method · 0.45
typing.py
File · 0.45
__new__
Method · 0.45
__new__
Method · 0.45
Calls
1
super
Class · 0.85
Tested by
no test coverage detected