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

[BUGFIX] Respect overridden properties in AbstractPageTree #625

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

lolli42
Copy link
Member

@lolli42 lolli42 commented Oct 8, 2024

This changes all property accesses within AbstractPageTree to use static instead of self. Since the class is abstract and therefore subject to class inheritance, its properties may also change in subclasses. Using self to access them would hide potentially overridden properties (late static binding).

This changes all property accesses within AbstractPageTree to
use static instead of self. Since the class is abstract and
therefore subject to class inheritance, its properties may also
change in subclasses. Using self to access them would hide
potentially overridden properties (late static binding).
@lolli42
Copy link
Member Author

lolli42 commented Oct 8, 2024

This is one part of #479 - core main stays green with this.

@lolli42 lolli42 merged commit eb8713d into main Oct 8, 2024
6 checks passed
@lolli42 lolli42 deleted the lolli-1 branch October 8, 2024 13:24
sbuerk pushed a commit that referenced this pull request Oct 12, 2024
This changes all property accesses within AbstractPageTree to
use static instead of self. Since the class is abstract and
therefore subject to class inheritance, its properties may also
change in subclasses. Using self to access them would hide
potentially overridden properties (late static binding).

Co-authored-by: Elias Häußler <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants