MCPcopy Create free account
hub / github.com/cdgriffith/Box / __init__

Method __init__

test/test_strict_box.py:189–191  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

187def test_subclass_can_set_initial_attributes_during_construction():
188 class Settings(StrictBox):
189 def __init__(self, **kwargs):
190 self.port = 8000
191 super().__init__(**kwargs)
192
193 settings = Settings(port=8080)
194 assert settings.port == 8080

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected