Skip to content

Commit bc71561

Browse files
committed
python: avoid an Any
1 parent 574e0f4 commit bc71561

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/_pytest/python.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,9 @@ def _genfunctions(self, name: str, funcobj) -> Iterator["Function"]:
473473
clscol = self.getparent(Class)
474474
cls = clscol and clscol.obj or None
475475

476-
definition = FunctionDefinition.from_parent(self, name=name, callobj=funcobj)
476+
definition: FunctionDefinition = FunctionDefinition.from_parent(
477+
self, name=name, callobj=funcobj
478+
)
477479
fixtureinfo = definition._fixtureinfo
478480

479481
# pytest_generate_tests impls call metafunc.parametrize() which fills

0 commit comments

Comments
 (0)