Skip to content

Commit 28c8042

Browse files
committed
add hack for py3.9
1 parent 05a073e commit 28c8042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_factoryboy/fixture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def inject_into_caller(name: str, function: Callable[..., Any], locals_: Box[dic
260260
# Therefore, we can just check for __qualname__ to figure out if we are in a class, and apply the @staticmethod.
261261
is_class_or_function = "__qualname__" in locals_.value
262262
if is_class_or_function:
263-
function = staticmethod(function)
263+
function = staticmethod(function) # type: ignore[assignment] # python 3.9 quirk
264264

265265
locals_.value[name] = function
266266

0 commit comments

Comments
 (0)