Open leonwilly opened 3 years ago
I like the concept, and the updated introspection in __new__
. Definitely worth having.
Do you mind removing the unrelated changes from this PR though? Your code editor included quite a bit of PEP8 corrections and while I don't disagree with a little linting, I'd rather it be separate from this change (makes it less clear what you've actually altered).
I like the concept, and the updated introspection in
__new__
. Definitely worth having.Do you mind removing the unrelated changes from this PR though? Your code editor included quite a bit of PEP8 corrections and while I don't disagree with a little linting, I'd rather it be separate from this change (makes it less clear what you've actually altered).
About the linting I apologize I even read your contributing guide and was trying to keep things styled the same. PyCharm automatically refactors the code and I forgot to disable that. I'll remove the linting applied by PyCharm and update the pull request.
About the linting I apologize I even read your contributing guide and was trying to keep things styled the same. PyCharm automatically refactors the code and I forgot to disable that. I'll remove the linting applied by PyCharm and update the pull request.
No worries. I also noticed you're working off of the master branch of your fork. This will cause headaches for you later on if you try to keep things in sync with this repo (I made the same mistake for my first PR).
Not sure if you want to deal with that now (would be easier for you, but it'd be a separate PR) or later (would require some git rebase
and force push magic).
Added an
AliasProperty
similar to Kivy but without thekv
language specific attributes. This required refactoring the__new__
method of theDispatcher
class. The bind argument to AliasProperty requires properties to_add_instance
in declaration order. The builtindir()
method doesn't list attributes in declaration order. Now the__dict__
property of the class is used for detecting properties. I also changed the iteration of base classes to use the__mro__
since that is the correct inheritance order already unraveled.