Open
Description
Right now we hint all the callables that admits variable arguments as Callable[..., T]
. Starting from python 3.10 we can use the combination of Concatenate
and ParamSpec
. Link to documentation.
So for example GAsyncReadyCallback
can be typed as
__P__ = ParamSpec("__P__")
Callable[Concatenate[GObject.Object, Gio.AsyncResult, __P__], None]
@lovetox there are any plans to support 3.10?
Metadata
Metadata
Assignees
Labels
No labels