Skip to content

Commit 431dd02

Browse files
committed
Alternative fix
1 parent 28c8042 commit 431dd02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
include:
3737
- python-version: "3.9"
3838
toxfactor: py3.9
39-
ignore-typecheck-outcome: false
39+
ignore-typecheck-outcome: true
4040
ignore-test-outcome: false
4141
- python-version: "3.10"
4242
toxfactor: py3.10

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) # type: ignore[assignment] # python 3.9 quirk
263+
function = staticmethod(function)
264264

265265
locals_.value[name] = function
266266

0 commit comments

Comments
 (0)