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

Decouple InstanceSpecSet and LinkableSpecSet #1329

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

plypaul
Copy link
Contributor

@plypaul plypaul commented Jul 11, 2024

LinkableSpecSet depends on InstanceSpecSet, which leads to circular dependencies in downstream changes. This PR updates a few methods in LinkableSpecSet to remove that dependency.

@cla-bot cla-bot bot added the cla:yes label Jul 11, 2024
@plypaul plypaul marked this pull request as ready for review July 11, 2024 21:21
Copy link
Contributor

@courtneyholcomb courtneyholcomb left a comment

Choose a reason for hiding this comment

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

LGTM!

return LinkableSpecSet.create_from_spec_set(InstanceSpecSet.create_from_specs(specs))

@dataclass
class _GroupSpecByTypeVisitor(InstanceSpecVisitor[None]):
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious what it means to have this underscore prefix on a class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It indicates more of a "private" class that's not mean to be used elsewhere.

@plypaul plypaul force-pushed the p--query-resolution-perf--06 branch from 362b718 to 82e741f Compare July 15, 2024 17:07
Base automatically changed from p--query-resolution-perf--06 to main July 15, 2024 17:11
@plypaul plypaul force-pushed the p--query-resolution-perf--07 branch from bd06cc0 to e9ee66c Compare July 15, 2024 17:23
@plypaul plypaul enabled auto-merge (squash) July 15, 2024 17:28
@plypaul plypaul merged commit 604bf53 into main Jul 15, 2024
15 checks passed
@plypaul plypaul deleted the p--query-resolution-perf--07 branch July 15, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants