mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-20657 Add an additional test case where warning was displayed on a returned value
This commit is contained in:
+7
-2
@@ -1,6 +1,11 @@
|
||||
from typing import Iterable
|
||||
|
||||
|
||||
def f() -> Iterable[int]:
|
||||
def g1() -> Iterable[int]:
|
||||
for i in range(10):
|
||||
yield i
|
||||
yield i
|
||||
|
||||
|
||||
def g2() -> Iterable[int]:
|
||||
yield 42
|
||||
return None
|
||||
Reference in New Issue
Block a user