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

fix(markers): apply lazy evaluation to markers #877

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

frostming
Copy link

@frostming frostming commented Feb 25, 2025

Signed-off-by: Frost Ming me@frostming.com

Fix #774

Change the marker evaluation to lazy evaluation so it is possible for boolean shortcuts. I didn't test but there should also be a performance gain.

Signed-off-by: Frost Ming <me@frostming.com>
Signed-off-by: Frost Ming <me@frostming.com>
@wimglenn
Copy link

Is this different to #834 ?

@frostming
Copy link
Author

frostming commented Feb 25, 2025

@wimglenn Thank you, I just noticed this PR. In fact, #834 is still eager, but it allows exceptions to exist and considers them during evaluation. The implementation also doesn't look so clean

By making the evaluation lazy there would be a minor breaking change that illegal markers will be missed if being shortcutted.

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.

Marker referencing 'platform_release' fails to evaluate on Linux systems with non-PEP 440 kernel versions
2 participants