Skip to content

Commit fc376e7

Browse files
Enable pylint's python 3.8 typing checks (unnecessary-default-type-args)
1 parent 69dd783 commit fc376e7

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
@@ -91,7 +91,7 @@
9191
FixtureFunction = TypeVar("FixtureFunction", bound=Callable[..., object])
9292
# The type of a fixture function (type alias generic in fixture value).
9393
_FixtureFunc = Union[
94-
Callable[..., FixtureValue], Callable[..., Generator[FixtureValue, None, None]]
94+
Callable[..., FixtureValue], Callable[..., Generator[FixtureValue]]
9595
]
9696
# The type of FixtureDef.cached_result (type alias generic in fixture value).
9797
_FixtureCachedResult = Union[
@@ -883,9 +883,7 @@ def call_fixture_func(
883883
fixturefunc: _FixtureFunc[FixtureValue], request: FixtureRequest, kwargs
884884
) -> FixtureValue:
885885
if is_generator(fixturefunc):
886-
fixturefunc = cast(
887-
Callable[..., Generator[FixtureValue, None, None]], fixturefunc
888-
)
886+
fixturefunc = cast(Callable[..., Generator[FixtureValue]], fixturefunc)
889887
generator = fixturefunc(**kwargs)
890888
try:
891889
fixture_result = next(generator)

0 commit comments

Comments
 (0)