diff --git a/src/gi-stubs/repository/GLib.pyi b/src/gi-stubs/repository/GLib.pyi index e12b05a2..bc793870 100644 --- a/src/gi-stubs/repository/GLib.pyi +++ b/src/gi-stubs/repository/GLib.pyi @@ -3744,7 +3744,7 @@ class Variant(GObject.GPointer): new_variant(value:GLib.Variant) -> GLib.Variant """ - def __init__(self, format_string: str, value: typing.Any): ... + def __init__(self, format_string: str, value: typing.Any) -> None: ... def byteswap(self) -> Variant: ... def check_format_string(self, format_string: str, copy_only: bool) -> bool: ... def classify(self) -> VariantClass: ... @@ -3797,16 +3797,16 @@ class Variant(GObject.GPointer): def new_array( cls, child_type: typing.Optional[VariantType] = None, - children: typing.Optional[Sequence[Variant]] = None, + children: typing.Optional[typing.Sequence[Variant]] = None, ) -> Variant: ... @classmethod def new_boolean(cls, value: bool) -> Variant: ... @classmethod def new_byte(cls, value: int) -> Variant: ... @classmethod - def new_bytestring(cls, string: Sequence[int]) -> Variant: ... + def new_bytestring(cls, string: typing.Sequence[int]) -> Variant: ... @classmethod - def new_bytestring_array(cls, strv: Sequence[str]) -> Variant: ... + def new_bytestring_array(cls, strv: typing.Sequence[str]) -> Variant: ... @classmethod def new_dict_entry(cls, key: Variant, value: Variant) -> Variant: ... @classmethod @@ -3827,7 +3827,7 @@ class Variant(GObject.GPointer): def new_from_data( cls, type: VariantType, - data: Sequence[int], + data: typing.Sequence[int], trusted: bool, notify: typing.Callable[[None], None], user_data: None, @@ -3849,13 +3849,13 @@ class Variant(GObject.GPointer): @classmethod def new_object_path(cls, object_path: str) -> Variant: ... @classmethod - def new_objv(cls, strv: Sequence[str]) -> Variant: ... + def new_objv(cls, strv: typing.Sequence[str]) -> Variant: ... @classmethod def new_signature(cls, signature: str) -> Variant: ... @classmethod def new_string(cls, string: str) -> Variant: ... @classmethod - def new_strv(cls, strv: Sequence[str]) -> Variant: ... + def new_strv(cls, strv: typing.Sequence[str]) -> Variant: ... @classmethod def new_tuple(cls, children: Variant) -> Variant: ... @classmethod @@ -3946,7 +3946,7 @@ class VariantType(GObject.GBoxed): """ # override - def __init__(self, string: str): ... + def __init__(self, string: str) -> None: ... @staticmethod def checked_(type_string: str) -> VariantType: ... def copy(self) -> VariantType: ...