Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ __init__
Method
__init__
tests/test_stl.py:697–698 ·
view source on GitHub ↗
(self, *args)
Source
from the content-addressed store, hash-verified
695
# Implements the Set protocol without explicitly inheriting from collections.abc.Set.
696
class
BareSetLike:
697
def
__init__(self, *args):
698
self.data = set(args)
699
700
def
__len__(self):
701
return
len(self.data)
Callers
1
__init__
Method · 0.45
Calls
1
set
Class · 0.50
Tested by
no test coverage detected