selene icon indicating copy to clipboard operation
selene copied to clipboard

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

Open roman-isakov opened this issue 1 year ago • 0 comments

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 avatar Jun 18 '24 13:06 roman-isakov