python: avoid an Any

This commit is contained in:
Ran Benita 2023-09-05 08:59:44 +03:00
parent 574e0f45d9
commit bc71561ad9
1 changed files with 3 additions and 1 deletions

View File

@ -473,7 +473,9 @@ class PyCollector(PyobjMixin, nodes.Collector):
clscol = self.getparent(Class)
cls = clscol and clscol.obj or None
definition = FunctionDefinition.from_parent(self, name=name, callobj=funcobj)
definition: FunctionDefinition = FunctionDefinition.from_parent(
self, name=name, callobj=funcobj
)
fixtureinfo = definition._fixtureinfo
# pytest_generate_tests impls call metafunc.parametrize() which fills