@@ -1640,11 +1640,11 @@ def all():
1640
1640
from _typeshed import Incomplete
1641
1641
from collections.abc import Generator
1642
1642
1643
- def f() -> Generator[Incomplete, None, None ]: ...
1644
- def g() -> Generator[None, Incomplete, None ]: ...
1645
- def h1() -> Generator[None, None, None ]: ...
1643
+ def f() -> Generator[Incomplete]: ...
1644
+ def g() -> Generator[None, Incomplete]: ...
1645
+ def h1() -> Generator[None]: ...
1646
1646
def h2() -> Generator[None, None, Incomplete]: ...
1647
- def h3() -> Generator[None, None, None ]: ...
1647
+ def h3() -> Generator[None]: ...
1648
1648
def all() -> Generator[Incomplete, Incomplete, Incomplete]: ...
1649
1649
1650
1650
[case testFunctionYieldsNone]
@@ -1656,8 +1656,8 @@ def g():
1656
1656
[out]
1657
1657
from collections.abc import Generator
1658
1658
1659
- def f() -> Generator[None, None, None ]: ...
1660
- def g() -> Generator[None, None, None ]: ...
1659
+ def f() -> Generator[None]: ...
1660
+ def g() -> Generator[None]: ...
1661
1661
1662
1662
[case testGeneratorAlreadyDefined]
1663
1663
class Generator:
@@ -1671,7 +1671,7 @@ from collections.abc import Generator as _Generator
1671
1671
1672
1672
class Generator: ...
1673
1673
1674
- def f() -> _Generator[Incomplete, None, None ]: ...
1674
+ def f() -> _Generator[Incomplete]: ...
1675
1675
1676
1676
[case testGeneratorYieldFrom]
1677
1677
def g1():
@@ -1692,10 +1692,10 @@ def g5():
1692
1692
from _typeshed import Incomplete
1693
1693
from collections.abc import Generator
1694
1694
1695
- def g1() -> Generator[Incomplete, Incomplete, None ]: ...
1696
- def g2() -> Generator[Incomplete, Incomplete, None ]: ...
1697
- def g3() -> Generator[Incomplete, Incomplete, None ]: ...
1698
- def g4() -> Generator[Incomplete, Incomplete, None ]: ...
1695
+ def g1() -> Generator[Incomplete, Incomplete]: ...
1696
+ def g2() -> Generator[Incomplete, Incomplete]: ...
1697
+ def g3() -> Generator[Incomplete, Incomplete]: ...
1698
+ def g4() -> Generator[Incomplete, Incomplete]: ...
1699
1699
def g5() -> Generator[Incomplete, Incomplete, Incomplete]: ...
1700
1700
1701
1701
[case testGeneratorYieldAndYieldFrom]
@@ -1728,13 +1728,13 @@ def g7():
1728
1728
from _typeshed import Incomplete
1729
1729
from collections.abc import Generator
1730
1730
1731
- def g1() -> Generator[Incomplete, Incomplete, None ]: ...
1732
- def g2() -> Generator[Incomplete, Incomplete, None ]: ...
1733
- def g3() -> Generator[Incomplete, Incomplete, None ]: ...
1734
- def g4() -> Generator[Incomplete, Incomplete, None ]: ...
1735
- def g5() -> Generator[Incomplete, Incomplete, None ]: ...
1731
+ def g1() -> Generator[Incomplete, Incomplete]: ...
1732
+ def g2() -> Generator[Incomplete, Incomplete]: ...
1733
+ def g3() -> Generator[Incomplete, Incomplete]: ...
1734
+ def g4() -> Generator[Incomplete, Incomplete]: ...
1735
+ def g5() -> Generator[Incomplete, Incomplete]: ...
1736
1736
def g6() -> Generator[Incomplete, Incomplete, Incomplete]: ...
1737
- def g7() -> Generator[Incomplete, Incomplete, None ]: ...
1737
+ def g7() -> Generator[Incomplete, Incomplete]: ...
1738
1738
1739
1739
[case testCallable]
1740
1740
from typing import Callable
0 commit comments