Created
February 9, 2025 15:31
Revisions
-
mypy-play created this gist
Feb 9, 2025 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ from functools import partial def func(a: str, b: int) -> None: print(f"{a=}, {b=}") partial_func = partial( func, # Argument 1 to "func" has incompatible type "**dict[str, int]"; expected "str" [arg-type] **dict(b=42), ) # Too many positional arguments for "func" [misc] partial_func("Hello")