Skip to content

Commit 43e476c

Browse files
cal0pteryxlovetox
authored andcommitted
typing: GIRepository 2.0: Update (changes)
1 parent 5138685 commit 43e476c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/gi-stubs/repository/_GIRepository2.pyi

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ from typing import TypeVar
1010
from gi.repository import GLib
1111
from gi.repository import GObject
1212

13+
T = TypeVar("T")
14+
1315
MAJOR_VERSION: int = 1
14-
MICRO_VERSION: int = 1
15-
MINOR_VERSION: int = 80
16+
MICRO_VERSION: int = 0
17+
MINOR_VERSION: int = 84
1618
TYPE_TAG_N_TYPES: int = 22
1719
_lock = ... # FIXME Constant
1820
_namespace: str = "GIRepository"
@@ -140,7 +142,7 @@ def property_info_get_getter(info: BaseInfo) -> Optional[BaseInfo]: ...
140142
def property_info_get_ownership_transfer(info: BaseInfo) -> Transfer: ...
141143
def property_info_get_setter(info: BaseInfo) -> Optional[BaseInfo]: ...
142144
def property_info_get_type(info: BaseInfo) -> BaseInfo: ...
143-
def registered_type_info_get_g_type(info: BaseInfo) -> Type: ...
145+
def registered_type_info_get_g_type(info: BaseInfo) -> Type[Any]: ...
144146
def registered_type_info_get_type_init(info: BaseInfo) -> str: ...
145147
def registered_type_info_get_type_name(info: BaseInfo) -> str: ...
146148
def signal_info_get_class_closure(info: BaseInfo) -> BaseInfo: ...
@@ -192,7 +194,7 @@ def union_info_get_n_methods(info: BaseInfo) -> int: ...
192194
def union_info_get_size(info: BaseInfo) -> int: ...
193195
def union_info_is_discriminated(info: BaseInfo) -> bool: ...
194196
def value_info_get_value(info: BaseInfo) -> int: ...
195-
def vfunc_info_get_address(info: BaseInfo, implementor_gtype: Type) -> None: ...
197+
def vfunc_info_get_address(info: BaseInfo, implementor_gtype: Type[Any]) -> None: ...
196198
def vfunc_info_get_flags(info: BaseInfo) -> VFuncInfoFlags: ...
197199
def vfunc_info_get_invoker(info: BaseInfo) -> BaseInfo: ...
198200
def vfunc_info_get_offset(info: BaseInfo) -> int: ...
@@ -284,7 +286,7 @@ class Repository(GObject.Object):
284286
@staticmethod
285287
def error_quark() -> int: ...
286288
def find_by_error_domain(self, domain: int) -> BaseInfo: ...
287-
def find_by_gtype(self, gtype: Type) -> BaseInfo: ...
289+
def find_by_gtype(self, gtype: Type[Any]) -> BaseInfo: ...
288290
def find_by_name(self, namespace_: str, name: str) -> BaseInfo: ...
289291
def get_c_prefix(self, namespace_: str) -> str: ...
290292
@staticmethod
@@ -294,7 +296,7 @@ class Repository(GObject.Object):
294296
def get_info(self, namespace_: str, index: int) -> BaseInfo: ...
295297
def get_loaded_namespaces(self) -> list[str]: ...
296298
def get_n_infos(self, namespace_: str) -> int: ...
297-
def get_object_gtype_interfaces(self, gtype: Type) -> list[BaseInfo]: ...
299+
def get_object_gtype_interfaces(self, gtype: Type[Any]) -> list[BaseInfo]: ...
298300
@staticmethod
299301
def get_option_group() -> GLib.OptionGroup: ...
300302
@staticmethod

0 commit comments

Comments
 (0)