Skip to content

Commit de18341

Browse files
Enable pylint's python 3.8 typing checks (unnecessary-default-type-args)
1 parent 0649ece commit de18341

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/_pytest/fixtures.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
FixtureFunction = TypeVar("FixtureFunction", bound=Callable[..., object])
9090
# The type of a fixture function (type alias generic in fixture value).
9191
_FixtureFunc = Union[
92-
Callable[..., FixtureValue], Callable[..., Generator[FixtureValue, None, None]]
92+
Callable[..., FixtureValue], Callable[..., Generator[FixtureValue]]
9393
]
9494
# The type of FixtureDef.cached_result (type alias generic in fixture value).
9595
_FixtureCachedResult = Union[
@@ -881,9 +881,7 @@ def call_fixture_func(
881881
fixturefunc: _FixtureFunc[FixtureValue], request: FixtureRequest, kwargs
882882
) -> FixtureValue:
883883
if is_generator(fixturefunc):
884-
fixturefunc = cast(
885-
Callable[..., Generator[FixtureValue, None, None]], fixturefunc
886-
)
884+
fixturefunc = cast(Callable[..., Generator[FixtureValue]], fixturefunc)
887885
generator = fixturefunc(**kwargs)
888886
try:
889887
fixture_result = next(generator)

0 commit comments

Comments
 (0)