config: return Sequence instead of List from _getconftestmodules

Nothing should mutate the internal data structure here.
This commit is contained in:
Ran Benita 2022-01-09 00:28:44 +02:00
parent ed83efaf4b
commit d98b695fec
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ class PytestPluginManager(PluginManager):
def _getconftestmodules(
self, path: Path, importmode: Union[str, ImportMode], rootpath: Path
) -> List[types.ModuleType]:
) -> Sequence[types.ModuleType]:
if self._noconftest:
return []