Skip to content

Commit 4cd6809

Browse files
committed
docs: update docstring
1 parent 1580241 commit 4cd6809

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/_pytest/fixtures.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,8 @@ def get_scope_node(node: nodes.Node, scope: Scope) -> nodes.Node | None:
150150
assert_never(scope)
151151

152152

153-
def getfixturemarker(obj: object) -> FixtureFunctionMarker | None:
154-
"""Return fixturemarker or None if it doesn't exist or raised
155-
exceptions."""
153+
def getfixturemarker(obj: object) -> Optional["FixtureFunctionMarker"]:
154+
"""Return fixturemarker or None if it doesn't exist"""
156155
if isinstance(obj, FixtureFunctionDefinition):
157156
return obj._fixture_function_marker
158157
return None

0 commit comments

Comments
 (0)