Replies: 1 comment 2 replies
-
If your |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to find a better solution for
call_job
(below). Currently,*args
is typed asAny
.Idea
With PEP 646 I'm wondering if it's possible to pass an unpacked TypeVarTuple as argument to
Job
, similar to how it works with Callables. Basically,[*Ts]
is just treated as a sequence of types. https://peps.python.org/pep-0646/#type-variable-tuples-with-callableProblem
Is this supposed to work? In a discussion in the pyright repo, Eric mentioned that this is unsupported: microsoft/pyright#3310 (comment). Pyright does emit an error, although interestingly
job.target
is still inferred correctly.Beta Was this translation helpful? Give feedback.
All reactions