Skip to content

Commit 1580241

Browse files
committed
refactor: replace type with isinstance
1 parent afac29e commit 1580241

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
@@ -153,7 +153,7 @@ def get_scope_node(node: nodes.Node, scope: Scope) -> nodes.Node | None:
153153
def getfixturemarker(obj: object) -> FixtureFunctionMarker | None:
154154
"""Return fixturemarker or None if it doesn't exist or raised
155155
exceptions."""
156-
if type(obj) is FixtureFunctionDefinition:
156+
if isinstance(obj, FixtureFunctionDefinition):
157157
return obj._fixture_function_marker
158158
return None
159159

0 commit comments

Comments
 (0)