Marc Mueller
Marc Mueller
> This makes me want to re-submit PEP 677… I agree, a good callable syntax would have been nice but I don't see that happening anytime soon. Adding a special...
A special type also has the benefit that it could be used in other places, too. See #1231
>> Lastly, a Callback protocol can't be used to type a generic ParamSpec argument. > > I'm confused by meaning of this statement. I use callback protocols like [...] >...
> This is supported by PEP 646. Thanks for the responses! This certainly looks promising. I do wonder though why it wouldn't work with ParamSpec, too. The PEP says it's...
I encountered a similar issue before. Although not with with the return type but rather version dependent imports, e.g. assign either `ast` (Py >= 3.8) or `typed_ast.ast3` to a common...
New crash on master #13536. Bisects to #13494
Backport PR to fix tests with 3.10.7: #13665
Thanks for the response @pradeep90! > We could revisit that if users run into this very often. From my experience so far, if a codebase uses functions like `call_later(cb, *args)`,...
> I think I might be missing something here for no one to have brought it up already, but isn't this what `ParamSpec` is for? This is only possible if...
> I'm wondering whether it might be possible to specifying the exact behaviour desired manually with something like: > > ```python > ArgType = *Ts | *tuple[*Ts, T1] | *tuple[*Ts,...