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

Require subclassing WorkunitsCallback #11677

Merged

Conversation

Eric-Arellano
Copy link
Contributor

As part of #11433, we need a way for callbacks to always express whether they can be finished async or not. This will be achieved through an abstractmethod property on the class, but this requires that plugins actually subclasses the class instead of using a looser Protocol.

[ci skip-build-wheels]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Some test failures due to type mismatches, but looks fine otherwise. Thanks!

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano merged commit c4733cb into pantsbuild:master Mar 12, 2021
@Eric-Arellano Eric-Arellano deleted the workunits-callback-class branch March 12, 2021 16:15
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.

None yet

2 participants