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

Only detect circular refs when they're circular #156

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

pnwpedro
Copy link
Collaborator

@pnwpedro pnwpedro commented Mar 4, 2024

#154

Problem

We weren't tracking circular references properly.

Solution

Use a list to track references and append/pop appropriately. Marker lookup could be made more efficient with a more appropriate data structure, but for now this fixes the bug.

@pnwpedro
Copy link
Collaborator Author

pnwpedro commented Mar 5, 2024

pyright failures are unrelated and will be addressed in #155

@pnwpedro pnwpedro force-pushed the issue-154-circular-ref-for-non-circular-ref branch from 24a5a21 to 0ab4ec0 Compare March 5, 2024 08:04
Copy link
Contributor

@ptpaterson ptpaterson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! LGTM.

@pnwpedro pnwpedro merged commit bd0adb6 into main Mar 5, 2024
5 of 6 checks passed
@pnwpedro pnwpedro deleted the issue-154-circular-ref-for-non-circular-ref branch March 5, 2024 13:57
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.

2 participants