Skip to content

Commit c9d8765

Browse files
committed
fixtures: change register_fixture to not accept scope=None
There is no reason to allow this.
1 parent 0070151 commit c9d8765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ def _register_fixture(
16361636
func: "_FixtureFunc[object]",
16371637
nodeid: Optional[str],
16381638
scope: Union[
1639-
Scope, _ScopeName, Callable[[str, Config], _ScopeName], None
1639+
Scope, _ScopeName, Callable[[str, Config], _ScopeName]
16401640
] = "function",
16411641
params: Optional[Sequence[object]] = None,
16421642
ids: Optional[

0 commit comments

Comments
 (0)