Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make better repr for PresetPosition #1091

Open
ZLLentz opened this issue Dec 5, 2022 · 0 comments
Open

Make better repr for PresetPosition #1091

ZLLentz opened this issue Dec 5, 2022 · 0 comments

Comments

@ZLLentz
Copy link
Member

ZLLentz commented Dec 5, 2022

Expected Behavior

It should be obvious what this object is and how to interact with it

Current Behavior

The repr is as follows:

def __repr__(self):
return str(self.pos)

Which tricks us into thinking it's a float rather than an object.

Possible Solution

  • Just remove the repr?
  • Wrap with info PresetPosition(name='name', value=32434324)

Context

Made it difficult to find the deactivate method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant