-
Notifications
You must be signed in to change notification settings - Fork 103
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
device properties #409
device properties #409
Conversation
/ok to test |
This comment has been minimized.
This comment has been minimized.
@@ -14,6 +14,1021 @@ | |||
_tls_lock = threading.Lock() | |||
|
|||
|
|||
# ruff: noqa | |||
class DeviceProperties: |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
def __init__(self): | ||
raise RuntimeError("DeviceProperties should not be instantiated directly") | ||
|
||
slots = "_handle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bug fix: __slots__
(I discovered that via the suggested added test.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
Thanks for your review @rwgk . Notable improvements :) |
/ok to test |
/ok to test |
/ok to test |
previous run encounter CI runner issue on one test. re-running the CI. |
/ok to test |
@leofang this one should be good to go. Ralf has approved but I wanted to make sure you were ok with it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are in total 5 dynamic attributes that we should not cache
/ok to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit looks good to me.
CI is green, let me merge. |
Thanks a lot, Keenan, Ralf, Daniel! |
|
close #210