MCPcopy Index your code
hub / github.com/python/cpython / __new__

Method __new__

Lib/_collections_abc.py:1066–1074  ·  view source on GitHub ↗
(cls, name, bases, namespace, **kwargs)

Source from the content-addressed store, hash-verified

1064
1065class _DeprecateByteStringMeta(ABCMeta):
1066 def __new__(cls, name, bases, namespace, **kwargs):
1067 if name != "ByteString":
1068 import warnings
1069
1070 warnings._deprecated(
1071 "collections.abc.ByteString",
1072 remove=(3, 17),
1073 )
1074 return super().__new__(cls, name, bases, namespace, **kwargs)
1075
1076 def __instancecheck__(cls, instance):
1077 import warnings

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__new__Method · 0.45

Tested by

no test coverage detected