| 1065 | |
| 1066 | # Declare a commandset with duplicate settable name |
| 1067 | class WithSettablesB(CommandSetBase): |
| 1068 | def __init__(self) -> None: |
| 1069 | super().__init__() |
| 1070 | |
| 1071 | self._arbitrary = Arbitrary() |
| 1072 | self._settable_prefix = "some" |
| 1073 | self.my_int = 11 |
| 1074 | |
| 1075 | self.add_settable( |
| 1076 | Settable( |
| 1077 | "arbitrary_value", |
| 1078 | int, |
| 1079 | "Some settable value", |
| 1080 | settable_object=self._arbitrary, |
| 1081 | settable_attrib_name="some_value", |
| 1082 | ) |
| 1083 | ) |
| 1084 | |
| 1085 | # create the command set and cmd2 |
| 1086 | cmdset = WithSettablesA() |
no outgoing calls
searching dependent graphs…