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

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

Open
roman-isakov opened this issue Jun 18, 2024 · 0 comments

Comments

@roman-isakov
Copy link
Contributor

roman-isakov commented Jun 18, 2024

example:
ss('').should(have.text('').each)

hint:
PyCharm 2023.3.4 (Professional Edition)

Expected type 'Condition[Collection]' (matched generic type 'Condition[E]'), got 'Condition[Iterable[Element]]' instead 

image

PyCharm 2024.1.3 (Professional Edition)
Expected type 'Condition[Collection]' (matched generic type 'Condition[E ≤: Assertable]'), got 'Condition[Iterable[Element]]' instead

No differences between PRO & CE, same error.

tested on rc8 and rc9

@roman-isakov roman-isakov changed the title Fix PyCharm 'Property each of selene.core.condition.Condition' type resolution hints Fix PyCharm 'Property each of selene.core.condition.Condition' type resolution for collections Jun 18, 2024
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

No branches or pull requests

1 participant