fixtures: change register_fixture to not accept scope=None

There is no reason to allow this.
This commit is contained in:
Ran Benita
2024-06-03 19:16:56 +03:00
parent 0070151c63
commit c9d8765381

View File

@@ -1636,7 +1636,7 @@ class FixtureManager:
func: "_FixtureFunc[object]",
nodeid: Optional[str],
scope: Union[
Scope, _ScopeName, Callable[[str, Config], _ScopeName], None
Scope, _ScopeName, Callable[[str, Config], _ScopeName]
] = "function",
params: Optional[Sequence[object]] = None,
ids: Optional[