mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-76874 Conformance test failure: annotations_generators.py
- Refactored PyTypeCheckerInspection.visitPyYieldExpression() to handle delegating and regular yield expressions separately - Added PyTypeCheckerInspection.visitDelegatingYieldExpression() to validate delegating yield expressions - Refactored GeneratorTypeDescriptor.create() into .fromGenerator() and .fromGeneratorOrProtocol() - Inline GeneratorTypeDescriptor.withAsync and GeneratorTypeDescriptor.toPyType GitOrigin-RevId: e414dc35430290eae9d022f9d8a458966ac90836
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bc7d99dfa1
commit
19d608d348
@@ -1,4 +1,4 @@
|
||||
async def gen() -> str:
|
||||
async def gen() -> <warning descr="Expected type 'AsyncGenerator[str | float, Any]', got 'str' instead">str</warning>:
|
||||
b: bool = <warning descr="Expected type 'str', got 'AsyncGenerator[str | float, Any]' instead"><caret>yield "str"</warning>
|
||||
if b:
|
||||
b = <warning descr="Expected type 'str', got 'AsyncGenerator[str | float, Any]' instead">yield 3.14</warning>
|
||||
Reference in New Issue
Block a user