Skip to content

fix: PyCharm type hint for \each\ condition (#541) - #690

Open
ChickenisLegit wants to merge 1 commit into
yashaka:masterfrom
ChickenisLegit:fix-issue-541-type-hint
Open

ChickenisLegit wants to merge 1 commit into
yashaka:masterfrom
ChickenisLegit:fix-issue-541-type-hint

Conversation

@ChickenisLegit

Copy link
Copy Markdown

Closes #541. This adds \Condition[typing.Any]\ as a fallback to the return type of \Condition.each\ to prevent PyCharm from reporting a type mismatch when passing to .should\ which expects \Condition[Collection].

This branch has not been deployed

No deployments
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.

Fix PyCharm 'Property each of selene.core.condition.Condition' type resolution for collections

2 participants