Skip to content

Commit

Permalink
typing: Gio: Make Icon init kwarg only
Browse files Browse the repository at this point in the history
  • Loading branch information
lovetox committed Apr 20, 2024
1 parent bc0b592 commit 15a3624
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/gi-stubs/repository/Gio.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,8 @@ class BytesIcon(GObject.Object, Icon, LoadableIcon):
bytes: GLib.Bytes

props: Props = ...
def __init__(self, bytes: GLib.Bytes = ...): ...
# override
def __init__(self, *, bytes: GLib.Bytes = ...): ...
def get_bytes(self) -> GLib.Bytes: ...
@classmethod
def new(cls, bytes: GLib.Bytes) -> BytesIcon: ...
Expand Down Expand Up @@ -2510,7 +2511,8 @@ class Emblem(GObject.Object, Icon):
origin: EmblemOrigin

props: Props = ...
def __init__(self, icon: GObject.Object = ..., origin: EmblemOrigin = ...): ...
# override
def __init__(self, *, icon: GObject.Object = ..., origin: EmblemOrigin = ...): ...
def get_icon(self) -> Icon: ...
def get_origin(self) -> EmblemOrigin: ...
@classmethod
Expand All @@ -2527,7 +2529,8 @@ class EmblemedIcon(GObject.Object, Icon):
props: Props = ...
parent_instance: GObject.Object = ...
priv: EmblemedIconPrivate = ...
def __init__(self, gicon: Icon = ...): ...
# override
def __init__(self, *, gicon: Icon = ...): ...
def add_emblem(self, emblem: Emblem) -> None: ...
def clear_emblems(self) -> None: ...
def get_emblems(self) -> list[Emblem]: ...
Expand Down Expand Up @@ -3262,7 +3265,8 @@ class FileIcon(GObject.Object, Icon, LoadableIcon):
file: File

props: Props = ...
def __init__(self, file: File = ...): ...
# override
def __init__(self, *, file: File = ...): ...
def get_file(self) -> File: ...
@classmethod
def new(cls, file: File) -> FileIcon: ...
Expand Down Expand Up @@ -6468,8 +6472,10 @@ class ThemedIcon(GObject.Object, Icon):
use_default_fallbacks: bool

props: Props = ...
# override
def __init__(
self,
*,
name: str = ...,
names: Sequence[str] = ...,
use_default_fallbacks: bool = ...,
Expand Down

0 comments on commit 15a3624

Please sign in to comment.