MCPcopy Create free account
hub / github.com/pybind/pybind11 / __init__

Method __init__

tests/test_stl.py:601–602  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

599 # Implements the Sequence protocol without explicitly inheriting from collections.abc.Sequence.
600 class BareSequenceLike:
601 def __init__(self, *args):
602 self.data = tuple(args)
603
604 def __len__(self):
605 return len(self.data)

Callers

nothing calls this directly

Calls 1

tupleClass · 0.85

Tested by

no test coverage detected