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

Make EmptyCriterion inherit from Criterion #605

Merged
merged 1 commit into from
Jun 16, 2021
Merged

Conversation

myw
Copy link
Contributor

@myw myw commented Jun 15, 2021

Otherwise, type checkers are confused. Plus, it makes logical sense; my assumption is this omission was just an oversight.

I can work around this temporarily with BaseCriterion = Union[Criterion, EmptyCriterion], but that doesn't seem like the right long-term answer.

Otherwise, type checkers are confused. Plus, it makes logical sense.
@myw myw requested review from twheys and a team as code owners June 15, 2021 16:46
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.365% when pulling 9b0b71e on myw:patch-1 into 0db485d on kayak:master.

@gl3nn gl3nn merged commit f961534 into kayak:master Jun 16, 2021
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