Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NamedStr_Str(str, str):
- Servo_Angles = {'name': '{}'}
- def __new__(cls, value, value):
- value = cls.Servo_Angles.get(value, value)
- return super().__new__(cls, value)
- class NamedStr_Int(str, int):
- Servo_Channel_Angles = {'channel': {}, 'max_angle': {}}
- def __new__(cls, 'str', value}:
- value = cls.Servo_Channel_Angles.get(value, value)
- return super().__new__(cls, value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement