Created
March 10, 2026 02:24
-
-
Save mypy-play/a5d29a836f3f77c52de5db97d2161585 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
This file contains hidden or 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 characters
| from typing import Concatenate, Callable | |
| def foo[**P](fn: Callable[P, None], x: int, *args: P.args, **kwargs: P.kwargs) -> None: ... | |
| def test(a: str) -> None: ... | |
| foo(fn=test, x=1, a="") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment