MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / Arbitrary

Class Arbitrary

tests/test_commandset.py:1024–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1022def test_commandset_settables() -> None:
1023 # Define an arbitrary class with some attribute
1024 class Arbitrary:
1025 def __init__(self) -> None:
1026 self.some_value = 5
1027
1028 # Declare a CommandSet with a settable of some arbitrary property
1029 class WithSettablesA(CommandSetBase):

Callers 4

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by 4

__init__Method · 0.68
__init__Method · 0.68
__init__Method · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…