diff --git a/src/gi-stubs/_gi.pyi b/src/gi-stubs/_gi.pyi index 1f33885f..68b2ae7c 100644 --- a/src/gi-stubs/_gi.pyi +++ b/src/gi-stubs/_gi.pyi @@ -158,7 +158,9 @@ class FunctionInfo(CallableInfo): def get_vfunc(self) -> VFuncInfo | None: ... def is_constructor(self) -> bool: ... def is_method(self) -> bool: ... - def __get__(self, instance: object, owner: object = None, /) -> Any: ... + def __get__( + self, instance: object, owner: type[object] | None = None, / + ) -> Self: ... class FunctionInfoFlags(int): IS_CONSTRUCTOR: ClassVar[int] @@ -545,7 +547,9 @@ class VFuncInfo(CallableInfo): def get_invoker(self) -> FunctionInfo | None: ... def get_offset(self) -> int: ... def get_signal(self) -> SignalInfo | None: ... - def __get__(self, instance: object, owner: object = None, /) -> Any: ... + def __get__( + self, instance: object, owner: type[object] | None = None, / + ) -> Self: ... class VFuncInfoFlags(int): CHAIN_UP: ClassVar[int]