Callback-Protocol
for the Union of all Callable
-types that only take keyword arguments.
#1468
Unanswered
randolf-scholz
asked this question in
Q&A
Replies: 1 comment 3 replies
-
It's not legal to specify a |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to express the type of the union of all
Callable
-types that only take keyword arguments (*)? I tried the following, but it gives both false positives and false negatives:https://mypy-play.net/?mypy=latest&python=3.11&gist=6307ab826f8a3bf3ee6274999f15dde6
(*) I.e. They satisfy the following
TypeGuard
Beta Was this translation helpful? Give feedback.
All reactions