You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is indicative of a lack of consistency, where logic is duplicated in various methods. Perhaps relying on super() for shared functionalities would be a viable mitigation. This is related to #9 & #11.
The text was updated successfully, but these errors were encountered:
…#14]
The ``__contains__`` logic also needed to be fixed to allow the
simplification in this commit. Checking ``hasattr`` wasn't a limiting
enough condition, as anything in the class dictionary would also
return ``True``. This led to errors when using namespaces as modules,
because they'd take in attribute names like ``__doc__`` which would
proc a ``PermissionError`` in frozen classes.
Resolution related to (#9, #11, #14)
Is this a new bug in aiootp?
Current Behavior
Behavior which is specified by subclasses of
Slots
in their__setitem__
methods can be bypassed when providing values to the default__init__
.Expected Behavior
The same behavior which is specified in the
__setitem__
by a subclass ofSlots
is applied when using all attribute & value setting interfaces.Steps To Reproduce
1. With this config:
2. Run:
3. See error:
There was no error, but that's the issue.
Relevant log output
No response
Environment
Additional Context
This issue is indicative of a lack of consistency, where logic is duplicated in various methods. Perhaps relying on
super()
for shared functionalities would be a viable mitigation. This is related to #9 & #11.The text was updated successfully, but these errors were encountered: