MCPcopy Index your code
hub / github.com/cool-RR/PySnooper / __new__

Method __new__

tests/mini_toolbox/pathlib.py:1192–1200  ·  view source on GitHub ↗
(cls, *args, **kwargs)

Source from the content-addressed store, hash-verified

1190 )
1191
1192 def __new__(cls, *args, **kwargs):
1193 if cls is Path:
1194 cls = WindowsPath if os.name == 'nt' else PosixPath
1195 self = cls._from_parts(args, init=False)
1196 if not self._flavour.is_supported:
1197 raise NotImplementedError("cannot instantiate %r on your system"
1198 % (cls.__name__,))
1199 self._init()
1200 return self
1201
1202 def _init(self,
1203 # Private non-constructor arguments

Callers 2

_from_partsMethod · 0.45
_from_parsed_partsMethod · 0.45

Calls 2

_initMethod · 0.95
_from_partsMethod · 0.80

Tested by

no test coverage detected