Improve class loading#778
Conversation
|
it would be nice for the PR to contain only one major change for the diff readability :) |
|
I have found no problems while using this PR. I didn't yet try the new supported concepts though. |
|
@ALERTua |
|
if you would be so kind to also expand the documentation <3 |
Which part exactly? |
|
Thanks! Classes in pyscript are definitely a weak area in terms of completeness and correctness, so these improvements are much appreciated. Thanks for adding some tests. |
Improved class loading: added support for dataclass, enum, metaclass, and keywords, and now ignoring inaccessible attributes during class creation (seen when instantiating homeassistant.helpers.entity.Entity due to ABCCachedProperties attribute caching).
Fixes #142, #537, #603.