diff --git a/src/gi-stubs/repository/Adw.pyi b/src/gi-stubs/repository/Adw.pyi index 56939051..802b7532 100644 --- a/src/gi-stubs/repository/Adw.pyi +++ b/src/gi-stubs/repository/Adw.pyi @@ -1043,7 +1043,7 @@ class AlertDialog(Dialog): self, parent: _Gtk4.Widget | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[AlertDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[AlertDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -1052,10 +1052,10 @@ class AlertDialog(Dialog): parent: _Gtk4.Widget | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[AlertDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[AlertDialog] | None, ) -> None: ... def choose_finish(self, result: Gio.AsyncResult) -> str: ... - def do_response(self, response: str) -> None: ... + def do_response(self, response: str, /) -> None: ... def get_body(self) -> str: ... def get_body_use_markup(self) -> bool: ... def get_close_response(self) -> str: ... @@ -5725,7 +5725,7 @@ class MessageDialog(_Gtk4.Window): def choose( self, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[MessageDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[MessageDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5733,10 +5733,10 @@ class MessageDialog(_Gtk4.Window): self, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[MessageDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[MessageDialog] | None, ) -> None: ... def choose_finish(self, result: Gio.AsyncResult) -> str: ... - def do_response(self, response: str) -> None: ... + def do_response(self, response: str, /) -> None: ... def get_body(self) -> str: ... def get_body_use_markup(self) -> bool: ... def get_close_response(self) -> str: ... diff --git a/src/gi-stubs/repository/Atk.pyi b/src/gi-stubs/repository/Atk.pyi index 57c91179..fdea9db0 100644 --- a/src/gi-stubs/repository/Atk.pyi +++ b/src/gi-stubs/repository/Atk.pyi @@ -424,9 +424,9 @@ class Hyperlink(GObject.Object, Action): def parent(self) -> GObject.Object: ... def do_get_end_index(self) -> int: ... def do_get_n_anchors(self) -> int: ... - def do_get_object(self, i: int) -> Object: ... + def do_get_object(self, i: int, /) -> Object: ... def do_get_start_index(self) -> int: ... - def do_get_uri(self, i: int) -> str: ... + def do_get_uri(self, i: int, /) -> str: ... def do_is_selected_link(self) -> bool: ... def do_is_valid(self) -> bool: ... def do_link_activated(self) -> None: ... @@ -925,11 +925,11 @@ class Object(GObject.Object): def add_relationship( self, relationship: _RelationTypeValueType, target: Object ) -> bool: ... - def do_active_descendant_changed(self, child: int | Any | None) -> None: ... + def do_active_descendant_changed(self, child: int | Any | None, /) -> None: ... def do_children_changed( - self, change_index: int, changed_child: int | Any | None + self, change_index: int, changed_child: int | Any | None, / ) -> None: ... - def do_focus_event(self, focus_in: bool) -> None: ... + def do_focus_event(self, focus_in: bool, /) -> None: ... def do_get_attributes(self) -> list[int]: ... def do_get_description(self) -> str: ... def do_get_index_in_parent(self) -> int: ... @@ -940,16 +940,16 @@ class Object(GObject.Object): def do_get_object_locale(self) -> str: ... def do_get_parent(self) -> Object: ... def do_get_role(self) -> Role: ... - def do_initialize(self, data: int | Any | None) -> None: ... - def do_property_change(self, values: PropertyValues) -> None: ... + def do_initialize(self, data: int | Any | None, /) -> None: ... + def do_property_change(self, values: PropertyValues, /) -> None: ... def do_ref_relation_set(self) -> RelationSet: ... def do_ref_state_set(self) -> StateSet: ... - def do_remove_property_change_handler(self, handler_id: int) -> None: ... - def do_set_description(self, description: str) -> None: ... - def do_set_name(self, name: str) -> None: ... - def do_set_parent(self, parent: Object) -> None: ... - def do_set_role(self, role: _RoleValueType) -> None: ... - def do_state_change(self, name: str, state_set: bool) -> None: ... + def do_remove_property_change_handler(self, handler_id: int, /) -> None: ... + def do_set_description(self, description: str, /) -> None: ... + def do_set_name(self, name: str, /) -> None: ... + def do_set_parent(self, parent: Object, /) -> None: ... + def do_set_role(self, role: _RoleValueType, /) -> None: ... + def do_state_change(self, name: str, state_set: bool, /) -> None: ... def do_visible_data_changed(self) -> None: ... def get_accessible_id(self) -> str: ... def get_attributes(self) -> list[int]: ... @@ -1509,7 +1509,7 @@ class Socket(Object, Component): accessible_table_summary: Object | None = ..., accessible_value: float = ..., ) -> None: ... - def do_embed(self, plug_id: str) -> None: ... + def do_embed(self, plug_id: str, /) -> None: ... def embed(self, plug_id: str) -> None: ... def is_occupied(self) -> bool: ... @classmethod diff --git a/src/gi-stubs/repository/GObject.pyi b/src/gi-stubs/repository/GObject.pyi index 7f168b9f..5091d60f 100644 --- a/src/gi-stubs/repository/GObject.pyi +++ b/src/gi-stubs/repository/GObject.pyi @@ -1484,10 +1484,10 @@ class ParamSpec(_gi.Fundamental): def do_set_property( self, pspec, value ): ... # FIXME: Override is missing typing annotation - def do_value_is_valid(self, value: Any) -> bool: ... - def do_value_set_default(self, value: Any) -> None: ... - def do_value_validate(self, value: Any) -> bool: ... - def do_values_cmp(self, value1: Any, value2: Any) -> int: ... + def do_value_is_valid(self, value: Any, /) -> bool: ... + def do_value_set_default(self, value: Any, /) -> None: ... + def do_value_validate(self, value: Any, /) -> bool: ... + def do_values_cmp(self, value1: Any, value2: Any, /) -> int: ... def get_blurb(self) -> str | None: ... def get_default_value(self) -> Any: ... def get_name(self) -> str: ... diff --git a/src/gi-stubs/repository/GdkPixbuf.pyi b/src/gi-stubs/repository/GdkPixbuf.pyi index cbf2c0ed..c1d8d832 100644 --- a/src/gi-stubs/repository/GdkPixbuf.pyi +++ b/src/gi-stubs/repository/GdkPixbuf.pyi @@ -192,7 +192,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): def get_file_info_async( filename: str, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -201,7 +201,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): filename: str, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[None] | None, + callback: Gio._AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @staticmethod def get_file_info_finish( @@ -285,7 +285,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): def new_from_stream_async( stream: Gio.InputStream, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -294,7 +294,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): stream: Gio.InputStream, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[None] | None, + callback: Gio._AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @classmethod def new_from_stream_at_scale( @@ -312,10 +312,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): height: int, preserve_aspect_ratio: bool, cancellable: Gio.Cancellable | None = None, - callback: Callable[ - [GObject.Object | None, Gio.AsyncResult, Unpack[_DataTs]], None - ] - | None = None, + callback: Gio._AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None = None, *user_data: Unpack[_DataTs], ) -> None: ... @classmethod @@ -363,10 +360,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): option_keys: Sequence[str] | None = None, option_values: Sequence[str] | None = None, cancellable: Gio.Cancellable | None = None, - callback: Callable[ - [GObject.Object | None, Gio.AsyncResult, Unpack[_DataTs]], None - ] - | None = None, + callback: Gio._AsyncReadyVarArgsCallback[Pixbuf, Unpack[_DataTs]] | None = None, *user_data: Unpack[_DataTs], ) -> None: ... def savev( @@ -413,8 +407,10 @@ class PixbufAnimation(GObject.Object): """ @property def parent_instance(self) -> GObject.Object: ... - def do_get_iter(self, start_time: GLib.TimeVal | None) -> PixbufAnimationIter: ... - def do_get_size(self, width: int, height: int) -> None: ... + def do_get_iter( + self, start_time: GLib.TimeVal | None, / + ) -> PixbufAnimationIter: ... + def do_get_size(self, width: int, height: int, /) -> None: ... def do_get_static_image(self) -> Pixbuf: ... def do_is_static_image(self) -> bool: ... def get_height(self) -> int: ... @@ -442,7 +438,7 @@ class PixbufAnimation(GObject.Object): def new_from_stream_async( stream: Gio.InputStream, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -451,7 +447,7 @@ class PixbufAnimation(GObject.Object): stream: Gio.InputStream, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[None] | None, + callback: Gio._AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @classmethod def new_from_stream_finish( @@ -495,7 +491,7 @@ class PixbufAnimationIter(GObject.Object): @property def parent_instance(self) -> GObject.Object: ... def advance(self, current_time: GLib.TimeVal | None = None) -> bool: ... - def do_advance(self, current_time: GLib.TimeVal | None) -> bool: ... + def do_advance(self, current_time: GLib.TimeVal | None, /) -> bool: ... def do_get_delay_time(self) -> int: ... def do_get_pixbuf(self) -> Pixbuf: ... def do_on_currently_loading_frame(self) -> bool: ... @@ -581,9 +577,9 @@ class PixbufLoader(GObject.Object): def priv(self) -> int: ... def close(self) -> bool: ... def do_area_prepared(self) -> None: ... - def do_area_updated(self, x: int, y: int, width: int, height: int) -> None: ... + def do_area_updated(self, x: int, y: int, width: int, height: int, /) -> None: ... def do_closed(self) -> None: ... - def do_size_prepared(self, width: int, height: int) -> None: ... + def do_size_prepared(self, width: int, height: int, /) -> None: ... def get_animation(self) -> PixbufAnimation | None: ... def get_format(self) -> PixbufFormat | None: ... def get_pixbuf(self) -> Pixbuf | None: ... diff --git a/src/gi-stubs/repository/Gio.pyi b/src/gi-stubs/repository/Gio.pyi index e818e675..6b475991 100644 --- a/src/gi-stubs/repository/Gio.pyi +++ b/src/gi-stubs/repository/Gio.pyi @@ -25,8 +25,10 @@ ObjectItemType = TypeVar("ObjectItemType", bound=GObject.Object, default=Any) ObjectPropsItemType = TypeVar("ObjectPropsItemType", bound=GObject.Object, default=Any) _DataTs = TypeVarTuple("_DataTs", default=Unpack[tuple[()]]) _SourceObjectT = TypeVar("_SourceObjectT", bound=GObject.ObjectProtocol | None) +_T_co = TypeVar("_T_co", covariant=True, default=Any) -AsyncReadyCallback: TypeAlias = Callable[ +_AsyncReadyCallback: TypeAlias = Callable[[_SourceObjectT, AsyncResult, _T_co], None] +_AsyncReadyVarArgsCallback: TypeAlias = Callable[ [_SourceObjectT, AsyncResult, Unpack[_DataTs]], None ] @@ -187,7 +189,7 @@ def app_info_get_default_for_type_async( content_type: str, must_support_uris: bool, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -196,7 +198,7 @@ def app_info_get_default_for_type_async( must_support_uris: bool, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... def app_info_get_default_for_type_finish(result: AsyncResult) -> AppInfo: ... def app_info_get_default_for_uri_scheme(uri_scheme: str) -> AppInfo | None: ... @@ -208,7 +210,7 @@ def app_info_get_default_for_uri_scheme_async( def app_info_get_default_for_uri_scheme_async( uri_scheme: str, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -216,7 +218,7 @@ def app_info_get_default_for_uri_scheme_async( uri_scheme: str, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... def app_info_get_default_for_uri_scheme_finish(result: AsyncResult) -> AppInfo: ... def app_info_get_fallback_for_type(content_type: str) -> list[AppInfo]: ... @@ -235,7 +237,7 @@ def app_info_launch_default_for_uri_async( uri: str, context: AppLaunchContext | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -244,7 +246,7 @@ def app_info_launch_default_for_uri_async( context: AppLaunchContext | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... def app_info_launch_default_for_uri_finish(result: AsyncResult) -> bool: ... def app_info_reset_type_associations(content_type: str) -> None: ... @@ -254,8 +256,7 @@ def async_initable_newv_async( parameters: GObject.Parameter, io_priority: int, cancellable: Cancellable | None = None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None = None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None = None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -266,7 +267,7 @@ def bus_get( def bus_get( bus_type: _BusTypeValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -274,7 +275,7 @@ def bus_get( bus_type: _BusTypeValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... def bus_get_finish(res: AsyncResult) -> DBusConnection: ... def bus_get_sync( @@ -341,7 +342,7 @@ def dbus_address_get_stream( def dbus_address_get_stream( address: str, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -349,7 +350,7 @@ def dbus_address_get_stream( address: str, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... def dbus_address_get_stream_finish(res: AsyncResult) -> tuple[IOStream, str | None]: ... def dbus_address_get_stream_sync( @@ -410,7 +411,7 @@ def file_new_tmp_async( tmpl: str | None, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -419,7 +420,7 @@ def file_new_tmp_async( io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @overload def file_new_tmp_dir_async( @@ -430,7 +431,7 @@ def file_new_tmp_dir_async( tmpl: str | None, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -439,7 +440,7 @@ def file_new_tmp_dir_async( io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... def file_new_tmp_dir_finish(result: AsyncResult) -> File: ... def file_new_tmp_finish(result: AsyncResult) -> tuple[File, FileIOStream]: ... @@ -530,7 +531,7 @@ def resources_unregister(resource: Resource) -> None: ... def settings_schema_source_get_default() -> SettingsSchemaSource | None: ... def simple_async_report_gerror_in_idle( object: GObject.Object | None, - callback: Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, + callback: _AsyncReadyCallback[None, Any | None] | None, user_data: Any | None, error: GLib.Error, ) -> None: ... @@ -843,7 +844,7 @@ class AppInfo(GObject.GInterface, Protocol): content_type: str, must_support_uris: bool, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -853,7 +854,7 @@ class AppInfo(GObject.GInterface, Protocol): must_support_uris: bool, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @staticmethod def get_default_for_type_finish(result: AsyncResult) -> AppInfo: ... @@ -869,7 +870,7 @@ class AppInfo(GObject.GInterface, Protocol): def get_default_for_uri_scheme_async( uri_scheme: str, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -878,7 +879,7 @@ class AppInfo(GObject.GInterface, Protocol): uri_scheme: str, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @staticmethod def get_default_for_uri_scheme_finish(result: AsyncResult) -> AppInfo: ... @@ -913,7 +914,7 @@ class AppInfo(GObject.GInterface, Protocol): uri: str, context: AppLaunchContext | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -923,7 +924,7 @@ class AppInfo(GObject.GInterface, Protocol): context: AppLaunchContext | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @staticmethod def launch_default_for_uri_finish(result: AsyncResult) -> bool: ... @@ -943,7 +944,7 @@ class AppInfo(GObject.GInterface, Protocol): uris: list[str] | None, context: AppLaunchContext | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[AppInfo, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[AppInfo, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -953,7 +954,7 @@ class AppInfo(GObject.GInterface, Protocol): context: AppLaunchContext | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[AppInfo] | None, + callback: _AsyncReadyVarArgsCallback[AppInfo] | None, ) -> None: ... def launch_uris_finish(self, result: AsyncResult) -> bool: ... def remove_supports_type(self, content_type: str) -> bool: ... @@ -1085,13 +1086,15 @@ class AppLaunchContext(GObject.Object): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> AppLaunchContextPrivate: ... - def do_get_display(self, info: AppInfo, files: list[File]) -> str | None: ... + def do_get_display(self, info: AppInfo, files: list[File], /) -> str | None: ... def do_get_startup_notify_id( - self, info: AppInfo | None, files: list[File] | None + self, info: AppInfo | None, files: list[File] | None, / ) -> str | None: ... - def do_launch_failed(self, startup_notify_id: str) -> None: ... - def do_launch_started(self, info: AppInfo, platform_data: GLib.Variant) -> None: ... - def do_launched(self, info: AppInfo, platform_data: GLib.Variant) -> None: ... + def do_launch_failed(self, startup_notify_id: str, /) -> None: ... + def do_launch_started( + self, info: AppInfo, platform_data: GLib.Variant, / + ) -> None: ... + def do_launched(self, info: AppInfo, platform_data: GLib.Variant, /) -> None: ... def get_display(self, info: AppInfo, files: list[File]) -> str | None: ... def get_environment(self) -> list[str]: ... def get_startup_notify_id( @@ -1244,19 +1247,19 @@ class Application(GObject.Object, ActionGroup, ActionMap): it is not done already. """ # FIXME: Override is missing typing annotation def do_activate(self) -> None: ... - def do_add_platform_data(self, builder: GLib.VariantBuilder) -> None: ... - def do_after_emit(self, platform_data: GLib.Variant) -> None: ... - def do_before_emit(self, platform_data: GLib.Variant) -> None: ... - def do_command_line(self, command_line: ApplicationCommandLine) -> int: ... + def do_add_platform_data(self, builder: GLib.VariantBuilder, /) -> None: ... + def do_after_emit(self, platform_data: GLib.Variant, /) -> None: ... + def do_before_emit(self, platform_data: GLib.Variant, /) -> None: ... + def do_command_line(self, command_line: ApplicationCommandLine, /) -> int: ... def do_dbus_register( - self, connection: DBusConnection, object_path: str + self, connection: DBusConnection, object_path: str, / ) -> bool: ... def do_dbus_unregister( - self, connection: DBusConnection, object_path: str + self, connection: DBusConnection, object_path: str, / ) -> None: ... - def do_handle_local_options(self, options: GLib.VariantDict) -> int: ... + def do_handle_local_options(self, options: GLib.VariantDict, /) -> int: ... def do_local_command_line( - self, arguments: Sequence[str] + self, arguments: Sequence[str], / ) -> tuple[bool, list[str], int]: ... def do_name_lost(self) -> bool: ... # override @@ -1399,8 +1402,8 @@ class ApplicationCommandLine(GObject.Object): def create_file_for_arg(self, arg: str) -> File: ... def do_done(self) -> None: ... def do_get_stdin(self) -> InputStream | None: ... - def do_print_literal(self, message: str) -> None: ... - def do_printerr_literal(self, message: str) -> None: ... + def do_print_literal(self, message: str, /) -> None: ... + def do_printerr_literal(self, message: str, /) -> None: ... def done(self) -> None: ... def get_arguments(self) -> list[str]: ... def get_cwd(self) -> str | None: ... @@ -1455,7 +1458,7 @@ class AsyncInitable(GObject.GInterface, Protocol): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[AsyncInitable, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[AsyncInitable, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -1464,7 +1467,7 @@ class AsyncInitable(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[AsyncInitable] | None, + callback: _AsyncReadyVarArgsCallback[AsyncInitable] | None, ) -> None: ... def init_finish(self, res: AsyncResult) -> bool: ... def new_finish(self, res: AsyncResult) -> GObject.Object: ... @@ -1475,8 +1478,7 @@ class AsyncInitable(GObject.GInterface, Protocol): parameters: GObject.Parameter, io_priority: int, cancellable: Cancellable | None = None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None = None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None = None, *user_data: Unpack[_DataTs], ) -> None: ... @@ -1574,17 +1576,17 @@ class BufferedInputStream(FilterInputStream, Seekable): base_stream: InputStream | None = ..., close_base_stream: bool = ..., ) -> None: ... - def do_fill(self, count: int, cancellable: Cancellable | None) -> int: ... + def do_fill(self, count: int, cancellable: Cancellable | None, /) -> int: ... def do_fill_async( self, count: int, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[BufferedInputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_fill_finish(self, result: AsyncResult) -> int: ... + def do_fill_finish(self, result: AsyncResult, /) -> int: ... def fill(self, count: int, cancellable: Cancellable | None = None) -> int: ... @overload def fill_async( @@ -1596,7 +1598,8 @@ class BufferedInputStream(FilterInputStream, Seekable): count: int, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[BufferedInputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[BufferedInputStream, Unpack[_DataTs]] + | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -1606,7 +1609,7 @@ class BufferedInputStream(FilterInputStream, Seekable): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[BufferedInputStream] | None, + callback: _AsyncReadyVarArgsCallback[BufferedInputStream] | None, ) -> None: ... def fill_finish(self, result: AsyncResult) -> int: ... def get_available(self) -> int: ... @@ -2221,7 +2224,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): flags: _DBusCallFlagsValueType, timeout_msec: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DBusConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DBusConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2237,7 +2240,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): timeout_msec: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DBusConnection] | None, + callback: _AsyncReadyVarArgsCallback[DBusConnection] | None, ) -> None: ... def call_finish(self, res: AsyncResult) -> GLib.Variant: ... def call_sync( @@ -2279,7 +2282,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): timeout_msec: int, fd_list: UnixFDList | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DBusConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DBusConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2296,7 +2299,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): fd_list: UnixFDList | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DBusConnection] | None, + callback: _AsyncReadyVarArgsCallback[DBusConnection] | None, ) -> None: ... def call_with_unix_fd_list_finish( self, res: AsyncResult @@ -2320,7 +2323,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): def close( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DBusConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DBusConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2328,7 +2331,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DBusConnection] | None, + callback: _AsyncReadyVarArgsCallback[DBusConnection] | None, ) -> None: ... def close_finish(self, res: AsyncResult) -> bool: ... def close_sync(self, cancellable: Cancellable | None = None) -> bool: ... @@ -2350,7 +2353,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): def flush( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DBusConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DBusConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2358,7 +2361,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DBusConnection] | None, + callback: _AsyncReadyVarArgsCallback[DBusConnection] | None, ) -> None: ... def flush_finish(self, res: AsyncResult) -> bool: ... def flush_sync(self, cancellable: Cancellable | None = None) -> bool: ... @@ -2388,7 +2391,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): flags: _DBusConnectionFlagsValueType, observer: DBusAuthObserver | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2400,7 +2403,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): observer: DBusAuthObserver | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @classmethod def new_finish(cls, res: AsyncResult) -> DBusConnection: ... @@ -2419,7 +2422,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): flags: _DBusConnectionFlagsValueType, observer: DBusAuthObserver | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2430,7 +2433,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): observer: DBusAuthObserver | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @classmethod def new_for_address_finish(cls, res: AsyncResult) -> DBusConnection: ... @@ -2507,7 +2510,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): flags: _DBusSendMessageFlagsValueType, timeout_msec: int, cancellable: Cancellable | None = None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] + callback: _AsyncReadyVarArgsCallback[DBusConnection, Unpack[_DataTs]] | None = None, *user_data: Unpack[_DataTs], ) -> int: ... @@ -2646,7 +2649,7 @@ class DBusInterfaceSkeleton(GObject.Object, DBusInterface): self, *, g_flags: _DBusInterfaceSkeletonFlagsValueType = ... ) -> None: ... def do_flush(self) -> None: ... - def do_g_authorize_method(self, invocation: DBusMethodInvocation) -> bool: ... + def do_g_authorize_method(self, invocation: DBusMethodInvocation, /) -> bool: ... def do_get_info(self) -> DBusInterfaceInfo: ... def do_get_properties(self) -> GLib.Variant: ... def do_get_vtable(self) -> DBusInterfaceVTable: ... @@ -3053,6 +3056,7 @@ class DBusObjectManagerClient( interface_proxy: DBusProxy, changed_properties: GLib.Variant, invalidated_properties: str, + /, ) -> None: ... def do_interface_proxy_signal( self, @@ -3061,6 +3065,7 @@ class DBusObjectManagerClient( sender_name: str, signal_name: str, parameters: GLib.Variant, + /, ) -> None: ... def get_connection(self) -> DBusConnection: ... def get_flags(self) -> DBusObjectManagerClientFlags: ... @@ -3093,7 +3098,7 @@ class DBusObjectManagerClient( | None, get_proxy_type_user_data: Any | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -3110,7 +3115,7 @@ class DBusObjectManagerClient( get_proxy_type_user_data: Any | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @classmethod def new_finish(cls, res: AsyncResult) -> DBusObjectManagerClient: ... @@ -3141,7 +3146,7 @@ class DBusObjectManagerClient( | None, get_proxy_type_user_data: Any | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -3158,7 +3163,7 @@ class DBusObjectManagerClient( get_proxy_type_user_data: Any | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @classmethod def new_for_bus_finish(cls, res: AsyncResult) -> DBusObjectManagerClient: ... @@ -3412,7 +3417,7 @@ class DBusObjectSkeleton(GObject.Object, DBusObject): def __init__(self, *, g_object_path: str | None = ...) -> None: ... def add_interface(self, interface_: DBusInterfaceSkeleton) -> None: ... def do_authorize_method( - self, interface_: DBusInterfaceSkeleton, invocation: DBusMethodInvocation + self, interface_: DBusInterfaceSkeleton, invocation: DBusMethodInvocation, / ) -> bool: ... def flush(self) -> None: ... @classmethod @@ -3622,7 +3627,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): flags: _DBusCallFlagsValueType, timeout_msec: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DBusProxy, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DBusProxy, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -3634,7 +3639,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): timeout_msec: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DBusProxy] | None, + callback: _AsyncReadyVarArgsCallback[DBusProxy] | None, ) -> None: ... def call_finish(self, res: AsyncResult) -> GLib.Variant: ... def call_sync( @@ -3664,7 +3669,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): timeout_msec: int, fd_list: UnixFDList | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DBusProxy, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DBusProxy, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -3677,7 +3682,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): fd_list: UnixFDList | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DBusProxy] | None, + callback: _AsyncReadyVarArgsCallback[DBusProxy] | None, ) -> None: ... def call_with_unix_fd_list_finish( self, res: AsyncResult @@ -3692,10 +3697,10 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): cancellable: Cancellable | None = None, ) -> tuple[GLib.Variant, UnixFDList | None]: ... def do_g_properties_changed( - self, changed_properties: GLib.Variant, invalidated_properties: str + self, changed_properties: GLib.Variant, invalidated_properties: str, / ) -> None: ... def do_g_signal( - self, sender_name: str, signal_name: str, parameters: GLib.Variant + self, sender_name: str, signal_name: str, parameters: GLib.Variant, / ) -> None: ... def get_cached_property(self, property_name: str) -> GLib.Variant | None: ... def get_cached_property_names(self) -> list[str]: ... @@ -3728,7 +3733,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): object_path: str, interface_name: str, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -3742,7 +3747,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): interface_name: str, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @classmethod def new_finish(cls, res: AsyncResult) -> DBusProxy: ... @@ -3767,7 +3772,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): object_path: str, interface_name: str, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -3781,7 +3786,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): interface_name: str, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @classmethod def new_for_bus_finish(cls, res: AsyncResult) -> DBusProxy: ... @@ -4014,7 +4019,7 @@ class DataInputStream(BufferedInputStream): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DataInputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DataInputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4023,7 +4028,7 @@ class DataInputStream(BufferedInputStream): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DataInputStream] | None, + callback: _AsyncReadyVarArgsCallback[DataInputStream] | None, ) -> None: ... def read_line_finish(self, result: AsyncResult) -> tuple[bytes, int]: ... def read_line_finish_utf8(self, result: AsyncResult) -> tuple[str | None, int]: ... @@ -4046,7 +4051,7 @@ class DataInputStream(BufferedInputStream): stop_chars: str, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DataInputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DataInputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4056,7 +4061,7 @@ class DataInputStream(BufferedInputStream): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DataInputStream] | None, + callback: _AsyncReadyVarArgsCallback[DataInputStream] | None, ) -> None: ... def read_until_finish(self, result: AsyncResult) -> tuple[str, int]: ... def read_upto( @@ -4080,7 +4085,7 @@ class DataInputStream(BufferedInputStream): stop_chars_len: int, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DataInputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DataInputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4091,7 +4096,7 @@ class DataInputStream(BufferedInputStream): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DataInputStream] | None, + callback: _AsyncReadyVarArgsCallback[DataInputStream] | None, ) -> None: ... def read_upto_finish(self, result: AsyncResult) -> tuple[str, int]: ... def set_byte_order(self, order: _DataStreamByteOrderValueType) -> None: ... @@ -4295,7 +4300,7 @@ class DebugControllerDBus(GObject.Object, DebugController, Initable): def __init__( self, *, connection: DBusConnection | None = ..., debug_enabled: bool = ... ) -> None: ... - def do_authorize(self, invocation: DBusMethodInvocation) -> bool: ... + def do_authorize(self, invocation: DBusMethodInvocation, /) -> bool: ... @classmethod def new( cls, connection: DBusConnection, cancellable: Cancellable | None = None @@ -4354,7 +4359,7 @@ class Drive(GObject.GInterface, Protocol): self, flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Drive, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Drive, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4363,7 +4368,7 @@ class Drive(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Drive] | None, + callback: _AsyncReadyVarArgsCallback[Drive] | None, ) -> None: ... def eject_finish(self, result: AsyncResult) -> bool: ... @overload @@ -4379,7 +4384,7 @@ class Drive(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Drive, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Drive, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4389,7 +4394,7 @@ class Drive(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Drive] | None, + callback: _AsyncReadyVarArgsCallback[Drive] | None, ) -> None: ... def eject_with_operation_finish(self, result: AsyncResult) -> bool: ... def enumerate_identifiers(self) -> list[str]: ... @@ -4413,7 +4418,7 @@ class Drive(GObject.GInterface, Protocol): def poll_for_media( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Drive, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Drive, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4421,7 +4426,7 @@ class Drive(GObject.GInterface, Protocol): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Drive] | None, + callback: _AsyncReadyVarArgsCallback[Drive] | None, ) -> None: ... def poll_for_media_finish(self, result: AsyncResult) -> bool: ... @overload @@ -4437,7 +4442,7 @@ class Drive(GObject.GInterface, Protocol): flags: _DriveStartFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Drive, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Drive, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4447,7 +4452,7 @@ class Drive(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Drive] | None, + callback: _AsyncReadyVarArgsCallback[Drive] | None, ) -> None: ... def start_finish(self, result: AsyncResult) -> bool: ... @overload @@ -4463,7 +4468,7 @@ class Drive(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Drive, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Drive, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4473,7 +4478,7 @@ class Drive(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Drive] | None, + callback: _AsyncReadyVarArgsCallback[Drive] | None, ) -> None: ... def stop_finish(self, result: AsyncResult) -> bool: ... @@ -4654,7 +4659,7 @@ class DtlsConnection(GObject.GInterface, Protocol): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DtlsConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DtlsConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4663,7 +4668,7 @@ class DtlsConnection(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DtlsConnection] | None, + callback: _AsyncReadyVarArgsCallback[DtlsConnection] | None, ) -> None: ... def close_finish(self, result: AsyncResult) -> bool: ... def emit_accept_certificate( @@ -4692,7 +4697,7 @@ class DtlsConnection(GObject.GInterface, Protocol): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DtlsConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DtlsConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4701,7 +4706,7 @@ class DtlsConnection(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DtlsConnection] | None, + callback: _AsyncReadyVarArgsCallback[DtlsConnection] | None, ) -> None: ... def handshake_finish(self, result: AsyncResult) -> bool: ... def set_advertised_protocols( @@ -4733,7 +4738,7 @@ class DtlsConnection(GObject.GInterface, Protocol): shutdown_write: bool, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[DtlsConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[DtlsConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4744,7 +4749,7 @@ class DtlsConnection(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[DtlsConnection] | None, + callback: _AsyncReadyVarArgsCallback[DtlsConnection] | None, ) -> None: ... def shutdown_finish(self, result: AsyncResult) -> bool: ... @@ -4950,7 +4955,7 @@ class File(GObject.GInterface, Protocol): flags: _FileCreateFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -4960,7 +4965,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def append_to_finish(self, res: AsyncResult) -> FileOutputStream: ... def build_attribute_list_for_copy( @@ -5006,7 +5011,7 @@ class File(GObject.GInterface, Protocol): flags: _FileCreateFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5016,7 +5021,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def create_finish(self, res: AsyncResult) -> FileOutputStream: ... def create_readwrite( @@ -5035,7 +5040,7 @@ class File(GObject.GInterface, Protocol): flags: _FileCreateFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5045,7 +5050,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def create_readwrite_finish(self, res: AsyncResult) -> FileIOStream: ... def delete(self, cancellable: Cancellable | None = None) -> bool: ... @@ -5058,7 +5063,7 @@ class File(GObject.GInterface, Protocol): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5067,7 +5072,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def delete_finish(self, result: AsyncResult) -> bool: ... def dup(self) -> File: ... @@ -5080,7 +5085,7 @@ class File(GObject.GInterface, Protocol): self, flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5089,7 +5094,7 @@ class File(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def eject_mountable_finish(self, result: AsyncResult) -> bool: ... @overload @@ -5105,7 +5110,7 @@ class File(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5115,7 +5120,7 @@ class File(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def eject_mountable_with_operation_finish(self, result: AsyncResult) -> bool: ... def enumerate_children( @@ -5139,7 +5144,7 @@ class File(GObject.GInterface, Protocol): flags: _FileQueryInfoFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5150,7 +5155,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def enumerate_children_finish(self, res: AsyncResult) -> FileEnumerator: ... def equal(self, file2: File) -> bool: ... @@ -5164,7 +5169,7 @@ class File(GObject.GInterface, Protocol): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5173,7 +5178,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def find_enclosing_mount_finish(self, res: AsyncResult) -> Mount: ... def get_basename(self) -> str | None: ... @@ -5201,7 +5206,7 @@ class File(GObject.GInterface, Protocol): def load_bytes_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5209,7 +5214,7 @@ class File(GObject.GInterface, Protocol): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def load_bytes_finish( self, result: AsyncResult @@ -5225,7 +5230,7 @@ class File(GObject.GInterface, Protocol): def load_contents_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5233,7 +5238,7 @@ class File(GObject.GInterface, Protocol): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def load_contents_finish( self, res: AsyncResult @@ -5251,7 +5256,7 @@ class File(GObject.GInterface, Protocol): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5260,7 +5265,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def make_directory_finish(self, result: AsyncResult) -> bool: ... def make_directory_with_parents( @@ -5282,7 +5287,7 @@ class File(GObject.GInterface, Protocol): symlink_value: str, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5292,7 +5297,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def make_symbolic_link_finish(self, result: AsyncResult) -> bool: ... def measure_disk_usage( @@ -5328,7 +5333,7 @@ class File(GObject.GInterface, Protocol): flags: _MountMountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5338,7 +5343,7 @@ class File(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def mount_enclosing_volume_finish(self, result: AsyncResult) -> bool: ... @overload @@ -5354,7 +5359,7 @@ class File(GObject.GInterface, Protocol): flags: _MountMountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5364,7 +5369,7 @@ class File(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def mount_mountable_finish(self, result: AsyncResult) -> File: ... def move( @@ -5408,7 +5413,7 @@ class File(GObject.GInterface, Protocol): tmpl: str | None, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5418,7 +5423,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @overload @staticmethod @@ -5431,7 +5436,7 @@ class File(GObject.GInterface, Protocol): tmpl: str | None, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5441,7 +5446,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[None] | None, + callback: _AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @staticmethod def new_tmp_dir_finish(result: AsyncResult) -> File: ... @@ -5459,7 +5464,7 @@ class File(GObject.GInterface, Protocol): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5468,7 +5473,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def open_readwrite_finish(self, res: AsyncResult) -> FileIOStream: ... @staticmethod @@ -5482,7 +5487,7 @@ class File(GObject.GInterface, Protocol): def poll_mountable( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5490,7 +5495,7 @@ class File(GObject.GInterface, Protocol): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def poll_mountable_finish(self, result: AsyncResult) -> bool: ... def query_default_handler( @@ -5505,7 +5510,7 @@ class File(GObject.GInterface, Protocol): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5514,7 +5519,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def query_default_handler_finish(self, result: AsyncResult) -> AppInfo: ... def query_exists(self, cancellable: Cancellable | None = None) -> bool: ... @@ -5536,7 +5541,7 @@ class File(GObject.GInterface, Protocol): attributes: str, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5546,7 +5551,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def query_filesystem_info_finish(self, res: AsyncResult) -> FileInfo: ... def query_info( @@ -5570,7 +5575,7 @@ class File(GObject.GInterface, Protocol): flags: _FileQueryInfoFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5581,7 +5586,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def query_info_finish(self, res: AsyncResult) -> FileInfo: ... def query_settable_attributes( @@ -5600,7 +5605,7 @@ class File(GObject.GInterface, Protocol): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5609,7 +5614,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def read_finish(self, res: AsyncResult) -> FileInputStream: ... def replace( @@ -5636,7 +5641,7 @@ class File(GObject.GInterface, Protocol): flags: _FileCreateFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5648,7 +5653,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def replace_contents( self, @@ -5675,7 +5680,7 @@ class File(GObject.GInterface, Protocol): make_backup: bool, flags: _FileCreateFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5687,7 +5692,7 @@ class File(GObject.GInterface, Protocol): flags: _FileCreateFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def replace_contents_bytes_async( self, @@ -5696,8 +5701,7 @@ class File(GObject.GInterface, Protocol): make_backup: bool, flags: _FileCreateFlagsValueType, cancellable: Cancellable | None = None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None = None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None = None, *user_data: Unpack[_DataTs], ) -> None: ... def replace_contents_finish(self, res: AsyncResult) -> tuple[bool, str | None]: ... @@ -5726,7 +5730,7 @@ class File(GObject.GInterface, Protocol): flags: _FileCreateFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5738,7 +5742,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def replace_readwrite_finish(self, res: AsyncResult) -> FileIOStream: ... def resolve_relative_path(self, relative_path: str) -> File: ... @@ -5807,7 +5811,7 @@ class File(GObject.GInterface, Protocol): flags: _FileQueryInfoFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5818,7 +5822,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def set_attributes_finish(self, result: AsyncResult) -> tuple[bool, FileInfo]: ... def set_attributes_from_info( @@ -5843,7 +5847,7 @@ class File(GObject.GInterface, Protocol): display_name: str, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5853,7 +5857,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def set_display_name_finish(self, res: AsyncResult) -> File: ... @overload @@ -5869,7 +5873,7 @@ class File(GObject.GInterface, Protocol): flags: _DriveStartFlagsValueType, start_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5879,7 +5883,7 @@ class File(GObject.GInterface, Protocol): start_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def start_mountable_finish(self, result: AsyncResult) -> bool: ... @overload @@ -5895,7 +5899,7 @@ class File(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5905,7 +5909,7 @@ class File(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def stop_mountable_finish(self, result: AsyncResult) -> bool: ... def supports_thread_contexts(self) -> bool: ... @@ -5919,7 +5923,7 @@ class File(GObject.GInterface, Protocol): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5928,7 +5932,7 @@ class File(GObject.GInterface, Protocol): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def trash_finish(self, result: AsyncResult) -> bool: ... @overload @@ -5940,7 +5944,7 @@ class File(GObject.GInterface, Protocol): self, flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5949,7 +5953,7 @@ class File(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def unmount_mountable_finish(self, result: AsyncResult) -> bool: ... @overload @@ -5965,7 +5969,7 @@ class File(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[File, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[File, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -5975,7 +5979,7 @@ class File(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[File] | None, + callback: _AsyncReadyVarArgsCallback[File] | None, ) -> None: ... def unmount_mountable_with_operation_finish(self, result: AsyncResult) -> bool: ... @@ -6077,7 +6081,7 @@ class FileEnumerator(GObject.Object): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[FileEnumerator, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[FileEnumerator, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -6086,30 +6090,30 @@ class FileEnumerator(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[FileEnumerator] | None, + callback: _AsyncReadyVarArgsCallback[FileEnumerator] | None, ) -> None: ... def close_finish(self, result: AsyncResult) -> bool: ... def do_close_async( self, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[FileEnumerator, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_close_finish(self, result: AsyncResult) -> bool: ... - def do_close_fn(self, cancellable: Cancellable | None) -> bool: ... - def do_next_file(self, cancellable: Cancellable | None) -> FileInfo | None: ... + def do_close_finish(self, result: AsyncResult, /) -> bool: ... + def do_close_fn(self, cancellable: Cancellable | None, /) -> bool: ... + def do_next_file(self, cancellable: Cancellable | None, /) -> FileInfo | None: ... def do_next_files_async( self, num_files: int, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[FileEnumerator, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_next_files_finish(self, result: AsyncResult) -> list[FileInfo]: ... + def do_next_files_finish(self, result: AsyncResult, /) -> list[FileInfo]: ... def get_child(self, info: FileInfo) -> File: ... def get_container(self) -> File: ... def has_pending(self) -> bool: ... @@ -6128,7 +6132,7 @@ class FileEnumerator(GObject.Object): num_files: int, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[FileEnumerator, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[FileEnumerator, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -6138,7 +6142,7 @@ class FileEnumerator(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[FileEnumerator] | None, + callback: _AsyncReadyVarArgsCallback[FileEnumerator] | None, ) -> None: ... def next_files_finish(self, result: AsyncResult) -> list[FileInfo]: ... def set_pending(self, pending: bool) -> None: ... @@ -6221,23 +6225,23 @@ class FileIOStream(IOStream, Seekable): def do_can_truncate(self) -> bool: ... def do_get_etag(self) -> str | None: ... def do_query_info( - self, attributes: str, cancellable: Cancellable | None + self, attributes: str, cancellable: Cancellable | None, / ) -> FileInfo: ... def do_query_info_async( self, attributes: str, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[FileIOStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_query_info_finish(self, result: AsyncResult) -> FileInfo: ... + def do_query_info_finish(self, result: AsyncResult, /) -> FileInfo: ... def do_seek( - self, offset: int, type: GLib.SeekType, cancellable: Cancellable | None + self, offset: int, type: GLib.SeekType, cancellable: Cancellable | None, / ) -> bool: ... def do_tell(self) -> int: ... - def do_truncate_fn(self, size: int, cancellable: Cancellable | None) -> bool: ... + def do_truncate_fn(self, size: int, cancellable: Cancellable | None, /) -> bool: ... def get_etag(self) -> str | None: ... def query_info( self, attributes: str, cancellable: Cancellable | None = None @@ -6252,7 +6256,7 @@ class FileIOStream(IOStream, Seekable): attributes: str, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[FileIOStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[FileIOStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -6262,7 +6266,7 @@ class FileIOStream(IOStream, Seekable): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[FileIOStream] | None, + callback: _AsyncReadyVarArgsCallback[FileIOStream] | None, ) -> None: ... def query_info_finish(self, result: AsyncResult) -> FileInfo: ... @@ -7128,20 +7132,20 @@ class FileInputStream(InputStream, Seekable): def priv(self) -> FileInputStreamPrivate: ... def do_can_seek(self) -> bool: ... def do_query_info( - self, attributes: str, cancellable: Cancellable | None + self, attributes: str, cancellable: Cancellable | None, / ) -> FileInfo: ... def do_query_info_async( self, attributes: str, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[FileInputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_query_info_finish(self, result: AsyncResult) -> FileInfo: ... + def do_query_info_finish(self, result: AsyncResult, /) -> FileInfo: ... def do_seek( - self, offset: int, type: GLib.SeekType, cancellable: Cancellable | None + self, offset: int, type: GLib.SeekType, cancellable: Cancellable | None, / ) -> bool: ... def do_tell(self) -> int: ... def query_info( @@ -7157,7 +7161,7 @@ class FileInputStream(InputStream, Seekable): attributes: str, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[FileInputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[FileInputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -7167,7 +7171,7 @@ class FileInputStream(InputStream, Seekable): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[FileInputStream] | None, + callback: _AsyncReadyVarArgsCallback[FileInputStream] | None, ) -> None: ... def query_info_finish(self, result: AsyncResult) -> FileInfo: ... @@ -7250,7 +7254,7 @@ class FileMonitor(GObject.Object): def cancel(self) -> bool: ... def do_cancel(self) -> bool: ... def do_changed( - self, file: File, other_file: File, event_type: _FileMonitorEventValueType + self, file: File, other_file: File, event_type: _FileMonitorEventValueType, / ) -> None: ... def emit_event( self, @@ -7301,23 +7305,23 @@ class FileOutputStream(OutputStream, Seekable): def do_can_truncate(self) -> bool: ... def do_get_etag(self) -> str | None: ... def do_query_info( - self, attributes: str, cancellable: Cancellable | None + self, attributes: str, cancellable: Cancellable | None, / ) -> FileInfo: ... def do_query_info_async( self, attributes: str, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[FileOutputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_query_info_finish(self, result: AsyncResult) -> FileInfo: ... + def do_query_info_finish(self, result: AsyncResult, /) -> FileInfo: ... def do_seek( - self, offset: int, type: GLib.SeekType, cancellable: Cancellable | None + self, offset: int, type: GLib.SeekType, cancellable: Cancellable | None, / ) -> bool: ... def do_tell(self) -> int: ... - def do_truncate_fn(self, size: int, cancellable: Cancellable | None) -> bool: ... + def do_truncate_fn(self, size: int, cancellable: Cancellable | None, /) -> bool: ... def get_etag(self) -> str | None: ... def query_info( self, attributes: str, cancellable: Cancellable | None = None @@ -7332,7 +7336,7 @@ class FileOutputStream(OutputStream, Seekable): attributes: str, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[FileOutputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[FileOutputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -7342,7 +7346,7 @@ class FileOutputStream(OutputStream, Seekable): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[FileOutputStream] | None, + callback: _AsyncReadyVarArgsCallback[FileOutputStream] | None, ) -> None: ... def query_info_finish(self, result: AsyncResult) -> FileInfo: ... @@ -7625,7 +7629,7 @@ class IOStream(GObject.Object): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[IOStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[IOStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -7634,19 +7638,19 @@ class IOStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[IOStream] | None, + callback: _AsyncReadyVarArgsCallback[IOStream] | None, ) -> None: ... def close_finish(self, result: AsyncResult) -> bool: ... def do_close_async( self, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[IOStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_close_finish(self, result: AsyncResult) -> bool: ... - def do_close_fn(self, cancellable: Cancellable | None) -> bool: ... + def do_close_finish(self, result: AsyncResult, /) -> bool: ... + def do_close_fn(self, cancellable: Cancellable | None, /) -> bool: ... def do_get_input_stream(self) -> InputStream: ... def do_get_output_stream(self) -> OutputStream: ... def get_input_stream(self) -> InputStream: ... @@ -7669,7 +7673,7 @@ class IOStream(GObject.Object): flags: _IOStreamSpliceFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[IOStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[IOStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -7680,7 +7684,7 @@ class IOStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[IOStream] | None, + callback: _AsyncReadyVarArgsCallback[IOStream] | None, ) -> None: ... @staticmethod def splice_finish(result: AsyncResult) -> bool: ... @@ -8096,7 +8100,7 @@ class InputStream(GObject.Object): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[InputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[InputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -8105,42 +8109,42 @@ class InputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[InputStream] | None, + callback: _AsyncReadyVarArgsCallback[InputStream] | None, ) -> None: ... def close_finish(self, result: AsyncResult) -> bool: ... def do_close_async( self, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[InputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_close_finish(self, result: AsyncResult) -> bool: ... - def do_close_fn(self, cancellable: Cancellable | None) -> bool: ... + def do_close_finish(self, result: AsyncResult, /) -> bool: ... + def do_close_fn(self, cancellable: Cancellable | None, /) -> bool: ... def do_read_async( self, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[InputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> bytes: ... - def do_read_finish(self, result: AsyncResult) -> int: ... + def do_read_finish(self, result: AsyncResult, /) -> int: ... def do_read_fn( - self, buffer: int | Any | None, count: int, cancellable: Cancellable | None + self, buffer: int | Any | None, count: int, cancellable: Cancellable | None, / ) -> int: ... - def do_skip(self, count: int, cancellable: Cancellable | None) -> int: ... + def do_skip(self, count: int, cancellable: Cancellable | None, /) -> int: ... def do_skip_async( self, count: int, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[InputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_skip_finish(self, result: AsyncResult) -> int: ... + def do_skip_finish(self, result: AsyncResult, /) -> int: ... def has_pending(self) -> bool: ... def is_closed(self) -> bool: ... def read(self, cancellable: Cancellable | None = None) -> tuple[int, bytes]: ... @@ -8151,7 +8155,7 @@ class InputStream(GObject.Object): self, io_priority: int, cancellable: Cancellable | None = None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] + callback: _AsyncReadyVarArgsCallback[InputStream, Unpack[_DataTs]] | None = None, *user_data: Unpack[_DataTs], ) -> bytes: ... @@ -8160,7 +8164,7 @@ class InputStream(GObject.Object): self, io_priority: int, cancellable: Cancellable | None = None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] + callback: _AsyncReadyVarArgsCallback[InputStream, Unpack[_DataTs]] | None = None, *user_data: Unpack[_DataTs], ) -> bytes: ... @@ -8177,7 +8181,7 @@ class InputStream(GObject.Object): count: int, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[InputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[InputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -8187,7 +8191,7 @@ class InputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[InputStream] | None, + callback: _AsyncReadyVarArgsCallback[InputStream] | None, ) -> None: ... def read_bytes_finish(self, result: AsyncResult) -> GLib.Bytes: ... def read_finish(self, result: AsyncResult) -> int: ... @@ -8203,7 +8207,7 @@ class InputStream(GObject.Object): count: int, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[InputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[InputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -8213,7 +8217,7 @@ class InputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[InputStream] | None, + callback: _AsyncReadyVarArgsCallback[InputStream] | None, ) -> None: ... def skip_finish(self, result: AsyncResult) -> int: ... @@ -8445,7 +8449,7 @@ class LoadableIcon(GObject.GInterface, Protocol): self, size: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[LoadableIcon, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[LoadableIcon, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -8454,7 +8458,7 @@ class LoadableIcon(GObject.GInterface, Protocol): size: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[LoadableIcon] | None, + callback: _AsyncReadyVarArgsCallback[LoadableIcon] | None, ) -> None: ... def load_finish(self, res: AsyncResult) -> tuple[InputStream, str]: ... @@ -8812,15 +8816,15 @@ class MenuModel(GObject.Object): @property def priv(self) -> MenuModelPrivate: ... def do_get_item_attribute_value( - self, item_index: int, attribute: str, expected_type: GLib.VariantType | None + self, item_index: int, attribute: str, expected_type: GLib.VariantType | None, / ) -> GLib.Variant | None: ... - def do_get_item_attributes(self, item_index: int) -> dict[str, GLib.Variant]: ... - def do_get_item_link(self, item_index: int, link: str) -> MenuModel | None: ... - def do_get_item_links(self, item_index: int) -> dict[str, MenuModel]: ... + def do_get_item_attributes(self, item_index: int, /) -> dict[str, GLib.Variant]: ... + def do_get_item_link(self, item_index: int, link: str, /) -> MenuModel | None: ... + def do_get_item_links(self, item_index: int, /) -> dict[str, MenuModel]: ... def do_get_n_items(self) -> int: ... def do_is_mutable(self) -> bool: ... - def do_iterate_item_attributes(self, item_index: int) -> MenuAttributeIter: ... - def do_iterate_item_links(self, item_index: int) -> MenuLinkIter: ... + def do_iterate_item_attributes(self, item_index: int, /) -> MenuAttributeIter: ... + def do_iterate_item_links(self, item_index: int, /) -> MenuLinkIter: ... def get_item_attribute_value( self, item_index: int, @@ -8889,7 +8893,7 @@ class Mount(GObject.GInterface, Protocol): self, flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Mount, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Mount, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -8898,7 +8902,7 @@ class Mount(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Mount] | None, + callback: _AsyncReadyVarArgsCallback[Mount] | None, ) -> None: ... def eject_finish(self, result: AsyncResult) -> bool: ... @overload @@ -8914,7 +8918,7 @@ class Mount(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Mount, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Mount, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -8924,7 +8928,7 @@ class Mount(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Mount] | None, + callback: _AsyncReadyVarArgsCallback[Mount] | None, ) -> None: ... def eject_with_operation_finish(self, result: AsyncResult) -> bool: ... def get_default_location(self) -> File: ... @@ -8945,7 +8949,7 @@ class Mount(GObject.GInterface, Protocol): self, force_rescan: bool, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Mount, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Mount, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -8954,7 +8958,7 @@ class Mount(GObject.GInterface, Protocol): force_rescan: bool, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Mount] | None, + callback: _AsyncReadyVarArgsCallback[Mount] | None, ) -> None: ... def guess_content_type_finish(self, result: AsyncResult) -> list[str]: ... def guess_content_type_sync( @@ -8974,7 +8978,7 @@ class Mount(GObject.GInterface, Protocol): flags: _MountMountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Mount, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Mount, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -8984,7 +8988,7 @@ class Mount(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Mount] | None, + callback: _AsyncReadyVarArgsCallback[Mount] | None, ) -> None: ... def remount_finish(self, result: AsyncResult) -> bool: ... def shadow(self) -> None: ... @@ -8997,7 +9001,7 @@ class Mount(GObject.GInterface, Protocol): self, flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Mount, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Mount, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9006,7 +9010,7 @@ class Mount(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Mount] | None, + callback: _AsyncReadyVarArgsCallback[Mount] | None, ) -> None: ... def unmount_finish(self, result: AsyncResult) -> bool: ... @overload @@ -9022,7 +9026,7 @@ class Mount(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Mount, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Mount, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9032,7 +9036,7 @@ class Mount(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Mount] | None, + callback: _AsyncReadyVarArgsCallback[Mount] | None, ) -> None: ... def unmount_with_operation_finish(self, result: AsyncResult) -> bool: ... def unshadow(self) -> None: ... @@ -9249,14 +9253,15 @@ class MountOperation(GObject.Object): default_user: str, default_domain: str, flags: _AskPasswordFlagsValueType, + /, ) -> None: ... - def do_ask_question(self, message: str, choices: Sequence[str]) -> None: ... - def do_reply(self, result: _MountOperationResultValueType) -> None: ... + def do_ask_question(self, message: str, choices: Sequence[str], /) -> None: ... + def do_reply(self, result: _MountOperationResultValueType, /) -> None: ... def do_show_processes( - self, message: str, processes: Sequence[int], choices: Sequence[str] + self, message: str, processes: Sequence[int], choices: Sequence[str], / ) -> None: ... def do_show_unmount_progress( - self, message: str, time_left: int, bytes_left: int + self, message: str, time_left: int, bytes_left: int, / ) -> None: ... def get_anonymous(self) -> bool: ... def get_choice(self) -> int: ... @@ -9477,7 +9482,7 @@ class NetworkMonitor(GObject.GInterface, Protocol): self, connectable: SocketConnectable, cancellable: Cancellable | None, - callback: AsyncReadyCallback[NetworkMonitor, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[NetworkMonitor, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9486,7 +9491,7 @@ class NetworkMonitor(GObject.GInterface, Protocol): connectable: SocketConnectable, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[NetworkMonitor] | None, + callback: _AsyncReadyVarArgsCallback[NetworkMonitor] | None, ) -> None: ... def can_reach_finish(self, result: AsyncResult) -> bool: ... def get_connectivity(self) -> NetworkConnectivity: ... @@ -9667,7 +9672,7 @@ class OutputStream(GObject.Object): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[OutputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9676,34 +9681,35 @@ class OutputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[OutputStream] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream] | None, ) -> None: ... def close_finish(self, result: AsyncResult) -> bool: ... def do_close_async( self, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[OutputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_close_finish(self, result: AsyncResult) -> bool: ... - def do_close_fn(self, cancellable: Cancellable | None) -> bool: ... - def do_flush(self, cancellable: Cancellable | None) -> bool: ... + def do_close_finish(self, result: AsyncResult, /) -> bool: ... + def do_close_fn(self, cancellable: Cancellable | None, /) -> bool: ... + def do_flush(self, cancellable: Cancellable | None, /) -> bool: ... def do_flush_async( self, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[OutputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_flush_finish(self, result: AsyncResult) -> bool: ... + def do_flush_finish(self, result: AsyncResult, /) -> bool: ... def do_splice( self, source: InputStream, flags: _OutputStreamSpliceFlagsValueType, cancellable: Cancellable | None, + /, ) -> int: ... def do_splice_async( self, @@ -9711,36 +9717,36 @@ class OutputStream(GObject.Object): flags: _OutputStreamSpliceFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[OutputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_splice_finish(self, result: AsyncResult) -> int: ... + def do_splice_finish(self, result: AsyncResult, /) -> int: ... def do_write_async( self, buffer: Sequence[int] | None, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[OutputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_write_finish(self, result: AsyncResult) -> int: ... + def do_write_finish(self, result: AsyncResult, /) -> int: ... def do_write_fn( - self, buffer: Sequence[int] | None, cancellable: Cancellable | None + self, buffer: Sequence[int] | None, cancellable: Cancellable | None, / ) -> int: ... def do_writev_async( self, vectors: Sequence[OutputVector], io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[OutputStream, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_writev_finish(self, result: AsyncResult) -> tuple[bool, int]: ... + def do_writev_finish(self, result: AsyncResult, /) -> tuple[bool, int]: ... def do_writev_fn( - self, vectors: Sequence[OutputVector], cancellable: Cancellable | None + self, vectors: Sequence[OutputVector], cancellable: Cancellable | None, / ) -> tuple[bool, int]: ... def flush(self, cancellable: Cancellable | None = None) -> bool: ... @overload @@ -9752,7 +9758,7 @@ class OutputStream(GObject.Object): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[OutputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9761,7 +9767,7 @@ class OutputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[OutputStream] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream] | None, ) -> None: ... def flush_finish(self, result: AsyncResult) -> bool: ... def has_pending(self) -> bool: ... @@ -9789,7 +9795,7 @@ class OutputStream(GObject.Object): flags: _OutputStreamSpliceFlagsValueType, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[OutputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9800,7 +9806,7 @@ class OutputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[OutputStream] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream] | None, ) -> None: ... def splice_finish(self, result: AsyncResult) -> int: ... def write( @@ -9822,7 +9828,7 @@ class OutputStream(GObject.Object): buffer: Sequence[int], io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[OutputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9832,7 +9838,7 @@ class OutputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[OutputStream] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream] | None, ) -> None: ... def write_all_finish(self, result: AsyncResult) -> tuple[bool, int]: ... @overload @@ -9848,7 +9854,7 @@ class OutputStream(GObject.Object): buffer: Sequence[int], io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[OutputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9858,7 +9864,7 @@ class OutputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[OutputStream] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream] | None, ) -> None: ... def write_bytes( self, bytes: GLib.Bytes, cancellable: Cancellable | None = None @@ -9876,7 +9882,7 @@ class OutputStream(GObject.Object): bytes: GLib.Bytes, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[OutputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9886,7 +9892,7 @@ class OutputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[OutputStream] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream] | None, ) -> None: ... def write_bytes_finish(self, result: AsyncResult) -> int: ... def write_finish(self, result: AsyncResult) -> int: ... @@ -9909,7 +9915,7 @@ class OutputStream(GObject.Object): vectors: Sequence[OutputVector], io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[OutputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9919,7 +9925,7 @@ class OutputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[OutputStream] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream] | None, ) -> None: ... def writev_all_finish(self, result: AsyncResult) -> tuple[bool, int]: ... @overload @@ -9935,7 +9941,7 @@ class OutputStream(GObject.Object): vectors: Sequence[OutputVector], io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[OutputStream, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -9945,7 +9951,7 @@ class OutputStream(GObject.Object): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[OutputStream] | None, + callback: _AsyncReadyVarArgsCallback[OutputStream] | None, ) -> None: ... def writev_finish(self, result: AsyncResult) -> tuple[bool, int]: ... @@ -10128,7 +10134,7 @@ class Permission(GObject.Object): def acquire_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Permission, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Permission, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -10136,27 +10142,27 @@ class Permission(GObject.Object): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Permission] | None, + callback: _AsyncReadyVarArgsCallback[Permission] | None, ) -> None: ... def acquire_finish(self, result: AsyncResult) -> bool: ... - def do_acquire(self, cancellable: Cancellable | None) -> bool: ... + def do_acquire(self, cancellable: Cancellable | None, /) -> bool: ... def do_acquire_async( self, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[Permission, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_acquire_finish(self, result: AsyncResult) -> bool: ... - def do_release(self, cancellable: Cancellable | None) -> bool: ... + def do_acquire_finish(self, result: AsyncResult, /) -> bool: ... + def do_release(self, cancellable: Cancellable | None, /) -> bool: ... def do_release_async( self, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[Permission, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_release_finish(self, result: AsyncResult) -> bool: ... + def do_release_finish(self, result: AsyncResult, /) -> bool: ... def get_allowed(self) -> bool: ... def get_can_acquire(self) -> bool: ... def get_can_release(self) -> bool: ... @@ -10172,7 +10178,7 @@ class Permission(GObject.Object): def release_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Permission, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Permission, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -10180,7 +10186,7 @@ class Permission(GObject.Object): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Permission] | None, + callback: _AsyncReadyVarArgsCallback[Permission] | None, ) -> None: ... def release_finish(self, result: AsyncResult) -> bool: ... @@ -10416,7 +10422,7 @@ class Proxy(GObject.GInterface, Protocol): connection: IOStream, proxy_address: ProxyAddress, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Proxy, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Proxy, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -10426,7 +10432,7 @@ class Proxy(GObject.GInterface, Protocol): proxy_address: ProxyAddress, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Proxy] | None, + callback: _AsyncReadyVarArgsCallback[Proxy] | None, ) -> None: ... def connect_finish(self, result: AsyncResult) -> IOStream: ... @staticmethod @@ -10644,7 +10650,7 @@ class ProxyResolver(GObject.GInterface, Protocol): self, uri: str, cancellable: Cancellable | None, - callback: AsyncReadyCallback[ProxyResolver, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[ProxyResolver, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -10653,7 +10659,7 @@ class ProxyResolver(GObject.GInterface, Protocol): uri: str, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[ProxyResolver] | None, + callback: _AsyncReadyVarArgsCallback[ProxyResolver] | None, ) -> None: ... def lookup_finish(self, result: AsyncResult) -> list[str]: ... @@ -10758,72 +10764,76 @@ class Resolver(GObject.Object): def priv(self) -> ResolverPrivate: ... def __init__(self, *, timeout: int = ...) -> None: ... def do_lookup_by_address( - self, address: InetAddress, cancellable: Cancellable | None + self, address: InetAddress, cancellable: Cancellable | None, / ) -> str: ... def do_lookup_by_address_async( self, address: InetAddress, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[Resolver, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_lookup_by_address_finish(self, result: AsyncResult) -> str: ... + def do_lookup_by_address_finish(self, result: AsyncResult, /) -> str: ... def do_lookup_by_name( - self, hostname: str, cancellable: Cancellable | None + self, hostname: str, cancellable: Cancellable | None, / ) -> list[InetAddress]: ... def do_lookup_by_name_async( self, hostname: str, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[Resolver, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_lookup_by_name_finish(self, result: AsyncResult) -> list[InetAddress]: ... + def do_lookup_by_name_finish(self, result: AsyncResult, /) -> list[InetAddress]: ... def do_lookup_by_name_with_flags( self, hostname: str, flags: _ResolverNameLookupFlagsValueType, cancellable: Cancellable | None, + /, ) -> list[InetAddress]: ... def do_lookup_by_name_with_flags_async( self, hostname: str, flags: _ResolverNameLookupFlagsValueType, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[Resolver, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... def do_lookup_by_name_with_flags_finish( - self, result: AsyncResult + self, result: AsyncResult, / ) -> list[InetAddress]: ... def do_lookup_records( self, rrname: str, record_type: _ResolverRecordTypeValueType, cancellable: Cancellable | None, + /, ) -> list[GLib.Variant]: ... def do_lookup_records_async( self, rrname: str, record_type: _ResolverRecordTypeValueType, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[Resolver, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_lookup_records_finish(self, result: AsyncResult) -> list[GLib.Variant]: ... + def do_lookup_records_finish( + self, result: AsyncResult, / + ) -> list[GLib.Variant]: ... def do_lookup_service_async( self, rrname: str, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[Resolver, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_lookup_service_finish(self, result: AsyncResult) -> list[SrvTarget]: ... + def do_lookup_service_finish(self, result: AsyncResult, /) -> list[SrvTarget]: ... def do_reload(self) -> None: ... @staticmethod def get_default() -> Resolver: ... @@ -10840,7 +10850,7 @@ class Resolver(GObject.Object): self, address: InetAddress, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Resolver, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Resolver, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -10849,7 +10859,7 @@ class Resolver(GObject.Object): address: InetAddress, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Resolver] | None, + callback: _AsyncReadyVarArgsCallback[Resolver] | None, ) -> None: ... def lookup_by_address_finish(self, result: AsyncResult) -> str: ... def lookup_by_name( @@ -10864,7 +10874,7 @@ class Resolver(GObject.Object): self, hostname: str, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Resolver, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Resolver, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -10873,7 +10883,7 @@ class Resolver(GObject.Object): hostname: str, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Resolver] | None, + callback: _AsyncReadyVarArgsCallback[Resolver] | None, ) -> None: ... def lookup_by_name_finish(self, result: AsyncResult) -> list[InetAddress]: ... def lookup_by_name_with_flags( @@ -10895,7 +10905,7 @@ class Resolver(GObject.Object): hostname: str, flags: _ResolverNameLookupFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Resolver, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Resolver, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -10905,7 +10915,7 @@ class Resolver(GObject.Object): flags: _ResolverNameLookupFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Resolver] | None, + callback: _AsyncReadyVarArgsCallback[Resolver] | None, ) -> None: ... def lookup_by_name_with_flags_finish( self, result: AsyncResult @@ -10929,7 +10939,7 @@ class Resolver(GObject.Object): rrname: str, record_type: _ResolverRecordTypeValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Resolver, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Resolver, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -10939,7 +10949,7 @@ class Resolver(GObject.Object): record_type: _ResolverRecordTypeValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Resolver] | None, + callback: _AsyncReadyVarArgsCallback[Resolver] | None, ) -> None: ... def lookup_records_finish(self, result: AsyncResult) -> list[GLib.Variant]: ... def lookup_service( @@ -10964,7 +10974,7 @@ class Resolver(GObject.Object): protocol: str, domain: str, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Resolver, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Resolver, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -10975,7 +10985,7 @@ class Resolver(GObject.Object): domain: str, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Resolver] | None, + callback: _AsyncReadyVarArgsCallback[Resolver] | None, ) -> None: ... def lookup_service_finish(self, result: AsyncResult) -> list[SrvTarget]: ... def set_default(self) -> None: ... @@ -11259,10 +11269,10 @@ class Settings(GObject.Object): ) -> None: ... def create_action(self, key: str) -> Action: ... def delay(self) -> None: ... - def do_change_event(self, keys: int, n_keys: int) -> bool: ... - def do_changed(self, key: str) -> None: ... - def do_writable_change_event(self, key: int) -> bool: ... - def do_writable_changed(self, key: str) -> None: ... + def do_change_event(self, keys: int, n_keys: int, /) -> bool: ... + def do_changed(self, key: str, /) -> None: ... + def do_writable_change_event(self, key: int, /) -> bool: ... + def do_writable_changed(self, key: str, /) -> None: ... def get_boolean(self, key: str) -> bool: ... def get_child(self, name: str) -> Settings: ... def get_default_value(self, key: str) -> GLib.Variant | None: ... @@ -11350,21 +11360,23 @@ class SettingsBackend(GObject.Object): def changed_tree( self, tree: GLib.Tree, origin_tag: int | Any | None = None ) -> None: ... - def do_get_writable(self, key: str) -> bool: ... + def do_get_writable(self, key: str, /) -> bool: ... def do_read( - self, key: str, expected_type: GLib.VariantType, default_value: bool + self, key: str, expected_type: GLib.VariantType, default_value: bool, / ) -> GLib.Variant: ... def do_read_user_value( - self, key: str, expected_type: GLib.VariantType + self, key: str, expected_type: GLib.VariantType, / ) -> GLib.Variant: ... - def do_reset(self, key: str, origin_tag: int | Any | None) -> None: ... - def do_subscribe(self, name: str) -> None: ... + def do_reset(self, key: str, origin_tag: int | Any | None, /) -> None: ... + def do_subscribe(self, name: str, /) -> None: ... def do_sync(self) -> None: ... - def do_unsubscribe(self, name: str) -> None: ... + def do_unsubscribe(self, name: str, /) -> None: ... def do_write( - self, key: str, value: GLib.Variant, origin_tag: int | Any | None + self, key: str, value: GLib.Variant, origin_tag: int | Any | None, / + ) -> bool: ... + def do_write_tree( + self, tree: GLib.Tree, origin_tag: int | Any | None, / ) -> bool: ... - def do_write_tree(self, tree: GLib.Tree, origin_tag: int | Any | None) -> bool: ... @staticmethod def flatten_tree(tree: GLib.Tree) -> tuple[str, list[str], list[GLib.Variant]]: ... @staticmethod @@ -11621,8 +11633,7 @@ class SimpleAsyncResult(GObject.Object, AsyncResult): def new( cls, source_object: GObject.Object | None = None, - callback: Callable[[GObject.Object | None, AsyncResult, Any | None], None] - | None = None, + callback: _AsyncReadyCallback[SimpleAsyncResult, Any | None] | None = None, user_data: Any | None = None, source_tag: int | Any | None = None, ) -> SimpleAsyncResult: ... @@ -11630,8 +11641,7 @@ class SimpleAsyncResult(GObject.Object, AsyncResult): def new_from_error( cls, source_object: GObject.Object | None, - callback: Callable[[GObject.Object | None, AsyncResult, Any | None], None] - | None, + callback: _AsyncReadyCallback[SimpleAsyncResult, Any | None] | None, user_data: Any | None, error: GLib.Error, ) -> SimpleAsyncResult: ... @@ -12014,7 +12024,7 @@ class SocketAddress(GObject.Object, SocketConnectable): def parent_instance(self) -> GObject.Object: ... def do_get_family(self) -> SocketFamily: ... def do_get_native_size(self) -> int: ... - def do_to_native(self, dest: int | Any | None, destlen: int) -> bool: ... + def do_to_native(self, dest: int | Any | None, destlen: int, /) -> bool: ... def get_family(self) -> SocketFamily: ... def get_native_size(self) -> int: ... @classmethod @@ -12053,15 +12063,15 @@ class SocketAddressEnumerator(GObject.Object): """ @property def parent_instance(self) -> GObject.Object: ... - def do_next(self, cancellable: Cancellable | None) -> SocketAddress | None: ... + def do_next(self, cancellable: Cancellable | None, /) -> SocketAddress | None: ... def do_next_async( self, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[SocketAddressEnumerator, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_next_finish(self, result: AsyncResult) -> SocketAddress | None: ... + def do_next_finish(self, result: AsyncResult, /) -> SocketAddress | None: ... def next(self, cancellable: Cancellable | None = None) -> SocketAddress | None: ... @overload def next_async( @@ -12071,7 +12081,8 @@ class SocketAddressEnumerator(GObject.Object): def next_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[SocketAddressEnumerator, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[SocketAddressEnumerator, Unpack[_DataTs]] + | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12079,7 +12090,7 @@ class SocketAddressEnumerator(GObject.Object): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[SocketAddressEnumerator] | None, + callback: _AsyncReadyVarArgsCallback[SocketAddressEnumerator] | None, ) -> None: ... def next_finish(self, result: AsyncResult) -> SocketAddress | None: ... @@ -12216,7 +12227,7 @@ class SocketClient(GObject.Object): self, connectable: SocketConnectable, cancellable: Cancellable | None, - callback: AsyncReadyCallback[SocketClient, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[SocketClient, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12225,7 +12236,7 @@ class SocketClient(GObject.Object): connectable: SocketConnectable, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[SocketClient] | None, + callback: _AsyncReadyVarArgsCallback[SocketClient] | None, ) -> None: ... def connect_finish(self, result: AsyncResult) -> SocketConnection: ... def connect_to_host( @@ -12247,7 +12258,7 @@ class SocketClient(GObject.Object): host_and_port: str, default_port: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[SocketClient, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[SocketClient, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12257,7 +12268,7 @@ class SocketClient(GObject.Object): default_port: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[SocketClient] | None, + callback: _AsyncReadyVarArgsCallback[SocketClient] | None, ) -> None: ... def connect_to_host_finish(self, result: AsyncResult) -> SocketConnection: ... def connect_to_service( @@ -12273,7 +12284,7 @@ class SocketClient(GObject.Object): domain: str, service: str, cancellable: Cancellable | None, - callback: AsyncReadyCallback[SocketClient, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[SocketClient, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12283,7 +12294,7 @@ class SocketClient(GObject.Object): service: str, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[SocketClient] | None, + callback: _AsyncReadyVarArgsCallback[SocketClient] | None, ) -> None: ... def connect_to_service_finish(self, result: AsyncResult) -> SocketConnection: ... def connect_to_uri( @@ -12299,7 +12310,7 @@ class SocketClient(GObject.Object): uri: str, default_port: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[SocketClient, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[SocketClient, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12309,7 +12320,7 @@ class SocketClient(GObject.Object): default_port: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[SocketClient] | None, + callback: _AsyncReadyVarArgsCallback[SocketClient] | None, ) -> None: ... def connect_to_uri_finish(self, result: AsyncResult) -> SocketConnection: ... def do_event( @@ -12317,6 +12328,7 @@ class SocketClient(GObject.Object): event: _SocketClientEventValueType, connectable: SocketConnectable, connection: IOStream, + /, ) -> None: ... def get_enable_proxy(self) -> bool: ... def get_family(self) -> SocketFamily: ... @@ -12437,7 +12449,7 @@ class SocketConnection(IOStream): self, address: SocketAddress, cancellable: Cancellable | None, - callback: AsyncReadyCallback[SocketConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[SocketConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12446,7 +12458,7 @@ class SocketConnection(IOStream): address: SocketAddress, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[SocketConnection] | None, + callback: _AsyncReadyVarArgsCallback[SocketConnection] | None, ) -> None: ... def connect_finish(self, result: AsyncResult) -> bool: ... @staticmethod @@ -12502,7 +12514,7 @@ class SocketControlMessage(GObject.Object): def do_get_level(self) -> int: ... def do_get_size(self) -> int: ... def do_get_type(self) -> int: ... - def do_serialize(self, data: int | Any | None) -> None: ... + def do_serialize(self, data: int | Any | None, /) -> None: ... def get_level(self) -> int: ... def get_msg_type(self) -> int: ... def get_size(self) -> int: ... @@ -12573,7 +12585,7 @@ class SocketListener(GObject.Object): def accept_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[SocketListener, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[SocketListener, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12581,7 +12593,7 @@ class SocketListener(GObject.Object): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[SocketListener] | None, + callback: _AsyncReadyVarArgsCallback[SocketListener] | None, ) -> None: ... def accept_finish( self, result: AsyncResult @@ -12597,7 +12609,7 @@ class SocketListener(GObject.Object): def accept_socket_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[SocketListener, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[SocketListener, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12605,7 +12617,7 @@ class SocketListener(GObject.Object): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[SocketListener] | None, + callback: _AsyncReadyVarArgsCallback[SocketListener] | None, ) -> None: ... def accept_socket_finish( self, result: AsyncResult @@ -12627,7 +12639,7 @@ class SocketListener(GObject.Object): def close(self) -> None: ... def do_changed(self) -> None: ... def do_event( - self, event: _SocketListenerEventValueType, socket: Socket + self, event: _SocketListenerEventValueType, socket: Socket, / ) -> None: ... @classmethod def new(cls) -> SocketListener: ... @@ -12691,7 +12703,7 @@ class SocketService(SocketListener): def priv(self) -> SocketServicePrivate: ... def __init__(self, *, active: bool = ..., listen_backlog: int = ...) -> None: ... def do_incoming( - self, connection: SocketConnection, source_object: GObject.Object + self, connection: SocketConnection, source_object: GObject.Object, / ) -> bool: ... def is_active(self) -> bool: ... @classmethod @@ -12798,7 +12810,7 @@ class Subprocess(GObject.Object, Initable): self, stdin_buf: GLib.Bytes | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Subprocess, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Subprocess, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12807,7 +12819,7 @@ class Subprocess(GObject.Object, Initable): stdin_buf: GLib.Bytes | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Subprocess] | None, + callback: _AsyncReadyVarArgsCallback[Subprocess] | None, ) -> None: ... def communicate_finish( self, result: AsyncResult @@ -12824,7 +12836,7 @@ class Subprocess(GObject.Object, Initable): self, stdin_buf: str | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Subprocess, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Subprocess, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12833,7 +12845,7 @@ class Subprocess(GObject.Object, Initable): stdin_buf: str | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Subprocess] | None, + callback: _AsyncReadyVarArgsCallback[Subprocess] | None, ) -> None: ... def communicate_utf8_finish( self, result: AsyncResult @@ -12861,7 +12873,7 @@ class Subprocess(GObject.Object, Initable): def wait_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Subprocess, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Subprocess, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12869,7 +12881,7 @@ class Subprocess(GObject.Object, Initable): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Subprocess] | None, + callback: _AsyncReadyVarArgsCallback[Subprocess] | None, ) -> None: ... def wait_check(self, cancellable: Cancellable | None = None) -> bool: ... @overload @@ -12880,7 +12892,7 @@ class Subprocess(GObject.Object, Initable): def wait_check_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Subprocess, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Subprocess, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -12888,7 +12900,7 @@ class Subprocess(GObject.Object, Initable): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Subprocess] | None, + callback: _AsyncReadyVarArgsCallback[Subprocess] | None, ) -> None: ... def wait_check_finish(self, result: AsyncResult) -> bool: ... def wait_finish(self, result: AsyncResult) -> bool: ... @@ -12973,8 +12985,7 @@ class Task(GObject.Object, AsyncResult): cls, source_object: GObject.Object | None = None, cancellable: Cancellable | None = None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None = None, + callback: _AsyncReadyVarArgsCallback[Task, Unpack[_DataTs]] | None = None, *callback_data: Unpack[_DataTs], ) -> Task: ... def propagate_boolean(self) -> bool: ... @@ -12984,8 +12995,7 @@ class Task(GObject.Object, AsyncResult): @staticmethod def report_error( source_object: GObject.Object | None, - callback: Callable[[GObject.Object | None, AsyncResult, Any | None], None] - | None, + callback: _AsyncReadyCallback[None, Any | None] | None, callback_data: Any | None, source_tag: int | Any | None, error: GLib.Error, @@ -13309,7 +13319,7 @@ class ThreadedSocketService(SocketService): self, *, max_threads: int = ..., active: bool = ..., listen_backlog: int = ... ) -> None: ... def do_run( - self, connection: SocketConnection, source_object: GObject.Object + self, connection: SocketConnection, source_object: GObject.Object, / ) -> bool: ... @classmethod def new(cls, max_threads: int) -> ThreadedSocketService: ... @@ -13465,7 +13475,7 @@ class TlsCertificate(GObject.Object): private_key_pkcs11_uri: str | None = ..., ) -> None: ... def do_verify( - self, identity: SocketConnectable | None, trusted_ca: TlsCertificate | None + self, identity: SocketConnectable | None, trusted_ca: TlsCertificate | None, / ) -> TlsCertificateFlags: ... def get_dns_names(self) -> list[GLib.Bytes]: ... def get_ip_addresses(self) -> list[InetAddress]: ... @@ -13644,22 +13654,22 @@ class TlsConnection(IOStream): use_system_certdb: bool = ..., ) -> None: ... def do_accept_certificate( - self, peer_cert: TlsCertificate, errors: _TlsCertificateFlagsValueType + self, peer_cert: TlsCertificate, errors: _TlsCertificateFlagsValueType, / ) -> bool: ... def do_get_binding_data( - self, type: _TlsChannelBindingTypeValueType, data: Sequence[int] + self, type: _TlsChannelBindingTypeValueType, data: Sequence[int], / ) -> bool: ... def do_get_negotiated_protocol(self) -> str | None: ... - def do_handshake(self, cancellable: Cancellable | None) -> bool: ... + def do_handshake(self, cancellable: Cancellable | None, /) -> bool: ... def do_handshake_async( self, io_priority: int, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[TlsConnection, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_handshake_finish(self, result: AsyncResult) -> bool: ... + def do_handshake_finish(self, result: AsyncResult, /) -> bool: ... def emit_accept_certificate( self, peer_cert: TlsCertificate, errors: _TlsCertificateFlagsValueType ) -> bool: ... @@ -13687,7 +13697,7 @@ class TlsConnection(IOStream): self, io_priority: int, cancellable: Cancellable | None, - callback: AsyncReadyCallback[TlsConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[TlsConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -13696,7 +13706,7 @@ class TlsConnection(IOStream): io_priority: int, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[TlsConnection] | None, + callback: _AsyncReadyVarArgsCallback[TlsConnection] | None, ) -> None: ... def handshake_finish(self, result: AsyncResult) -> bool: ... def set_advertised_protocols( @@ -13774,7 +13784,7 @@ class TlsDatabase(GObject.Object): def priv(self) -> TlsDatabasePrivate: ... def create_certificate_handle(self, certificate: TlsCertificate) -> str | None: ... def do_create_certificate_handle( - self, certificate: TlsCertificate + self, certificate: TlsCertificate, / ) -> str | None: ... def do_lookup_certificate_for_handle( self, @@ -13782,6 +13792,7 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, + /, ) -> TlsCertificate | None: ... def do_lookup_certificate_for_handle_async( self, @@ -13789,12 +13800,12 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[TlsDatabase, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... def do_lookup_certificate_for_handle_finish( - self, result: AsyncResult + self, result: AsyncResult, / ) -> TlsCertificate: ... def do_lookup_certificate_issuer( self, @@ -13802,6 +13813,7 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, + /, ) -> TlsCertificate: ... def do_lookup_certificate_issuer_async( self, @@ -13809,12 +13821,12 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[TlsDatabase, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... def do_lookup_certificate_issuer_finish( - self, result: AsyncResult + self, result: AsyncResult, / ) -> TlsCertificate: ... def do_lookup_certificates_issued_by( self, @@ -13822,6 +13834,7 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, + /, ) -> list[TlsCertificate]: ... def do_lookup_certificates_issued_by_async( self, @@ -13829,12 +13842,12 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[TlsDatabase, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... def do_lookup_certificates_issued_by_finish( - self, result: AsyncResult + self, result: AsyncResult, / ) -> list[TlsCertificate]: ... def do_verify_chain( self, @@ -13844,6 +13857,7 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseVerifyFlagsValueType, cancellable: Cancellable | None, + /, ) -> TlsCertificateFlags: ... def do_verify_chain_async( self, @@ -13853,11 +13867,11 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseVerifyFlagsValueType, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[TlsDatabase, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_verify_chain_finish(self, result: AsyncResult) -> TlsCertificateFlags: ... + def do_verify_chain_finish(self, result: AsyncResult, /) -> TlsCertificateFlags: ... def lookup_certificate_for_handle( self, handle: str, @@ -13880,7 +13894,7 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[TlsDatabase, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[TlsDatabase, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -13891,7 +13905,7 @@ class TlsDatabase(GObject.Object): flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[TlsDatabase] | None, + callback: _AsyncReadyVarArgsCallback[TlsDatabase] | None, ) -> None: ... def lookup_certificate_for_handle_finish( self, result: AsyncResult @@ -13918,7 +13932,7 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[TlsDatabase, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[TlsDatabase, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -13929,7 +13943,7 @@ class TlsDatabase(GObject.Object): flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[TlsDatabase] | None, + callback: _AsyncReadyVarArgsCallback[TlsDatabase] | None, ) -> None: ... def lookup_certificate_issuer_finish( self, result: AsyncResult @@ -13956,7 +13970,7 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[TlsDatabase, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[TlsDatabase, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -13967,7 +13981,7 @@ class TlsDatabase(GObject.Object): flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[TlsDatabase] | None, + callback: _AsyncReadyVarArgsCallback[TlsDatabase] | None, ) -> None: ... def lookup_certificates_issued_by_finish( self, result: AsyncResult @@ -14000,7 +14014,7 @@ class TlsDatabase(GObject.Object): interaction: TlsInteraction | None, flags: _TlsDatabaseVerifyFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[TlsDatabase, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[TlsDatabase, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -14013,7 +14027,7 @@ class TlsDatabase(GObject.Object): flags: _TlsDatabaseVerifyFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[TlsDatabase] | None, + callback: _AsyncReadyVarArgsCallback[TlsDatabase] | None, ) -> None: ... def verify_chain_finish(self, result: AsyncResult) -> TlsCertificateFlags: ... @@ -14220,7 +14234,7 @@ class TlsInteraction(GObject.Object): self, password: TlsPassword, cancellable: Cancellable | None, - callback: AsyncReadyCallback[TlsInteraction, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[TlsInteraction, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -14229,38 +14243,41 @@ class TlsInteraction(GObject.Object): password: TlsPassword, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[TlsInteraction] | None, + callback: _AsyncReadyVarArgsCallback[TlsInteraction] | None, ) -> None: ... def ask_password_finish(self, result: AsyncResult) -> TlsInteractionResult: ... def do_ask_password( - self, password: TlsPassword, cancellable: Cancellable | None + self, password: TlsPassword, cancellable: Cancellable | None, / ) -> TlsInteractionResult: ... def do_ask_password_async( self, password: TlsPassword, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[TlsInteraction, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_ask_password_finish(self, result: AsyncResult) -> TlsInteractionResult: ... + def do_ask_password_finish( + self, result: AsyncResult, / + ) -> TlsInteractionResult: ... def do_request_certificate( self, connection: TlsConnection, flags: _TlsCertificateRequestFlagsValueType, cancellable: Cancellable | None, + /, ) -> TlsInteractionResult: ... def do_request_certificate_async( self, connection: TlsConnection, flags: _TlsCertificateRequestFlagsValueType, cancellable: Cancellable | None, - callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] - | None, - *user_data: Unpack[_DataTs], + callback: _AsyncReadyCallback[TlsInteraction, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... def do_request_certificate_finish( - self, result: AsyncResult + self, result: AsyncResult, / ) -> TlsInteractionResult: ... def invoke_ask_password( self, password: TlsPassword, cancellable: Cancellable | None = None @@ -14290,7 +14307,7 @@ class TlsInteraction(GObject.Object): connection: TlsConnection, flags: _TlsCertificateRequestFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[TlsInteraction, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[TlsInteraction, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -14300,7 +14317,7 @@ class TlsInteraction(GObject.Object): flags: _TlsCertificateRequestFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[TlsInteraction] | None, + callback: _AsyncReadyVarArgsCallback[TlsInteraction] | None, ) -> None: ... def request_certificate_finish( self, result: AsyncResult @@ -14418,7 +14435,7 @@ class TlsPassword(GObject.Object): def do_get_default_warning(self) -> str: ... def do_get_value(self) -> bytes: ... def do_set_value( - self, value: Sequence[int], destroy: Callable[[Any | None], None] | None + self, value: Sequence[int], destroy: Callable[[Any | None], None] | None, / ) -> None: ... def get_description(self) -> str: ... def get_flags(self) -> TlsPasswordFlags: ... @@ -14521,7 +14538,7 @@ class UnixConnection(SocketConnection): def receive_credentials_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[UnixConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[UnixConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -14529,7 +14546,7 @@ class UnixConnection(SocketConnection): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[UnixConnection] | None, + callback: _AsyncReadyVarArgsCallback[UnixConnection] | None, ) -> None: ... def receive_credentials_finish(self, result: AsyncResult) -> Credentials: ... def receive_fd(self, cancellable: Cancellable | None = None) -> int: ... @@ -14542,7 +14559,7 @@ class UnixConnection(SocketConnection): def send_credentials_async( self, cancellable: Cancellable | None, - callback: AsyncReadyCallback[UnixConnection, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[UnixConnection, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -14550,7 +14567,7 @@ class UnixConnection(SocketConnection): self, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[UnixConnection] | None, + callback: _AsyncReadyVarArgsCallback[UnixConnection] | None, ) -> None: ... def send_credentials_finish(self, result: AsyncResult) -> bool: ... def send_fd(self, fd: int, cancellable: Cancellable | None = None) -> bool: ... @@ -14774,9 +14791,9 @@ class Vfs(GObject.Object): """ @property def parent_instance(self) -> GObject.Object: ... - def do_add_writable_namespaces(self, list: FileAttributeInfoList) -> None: ... - def do_get_file_for_path(self, path: str) -> File: ... - def do_get_file_for_uri(self, uri: str) -> File: ... + def do_add_writable_namespaces(self, list: FileAttributeInfoList, /) -> None: ... + def do_get_file_for_path(self, path: str, /) -> File: ... + def do_get_file_for_uri(self, uri: str, /) -> File: ... def do_get_supported_uri_schemes(self) -> list[str]: ... def do_is_active(self) -> bool: ... def do_local_file_add_info( @@ -14788,17 +14805,19 @@ class Vfs(GObject.Object): cancellable: Cancellable | None, extra_data: int | Any | None, free_extra_data: Callable[[Any | None], None], + /, ) -> None: ... - def do_local_file_moved(self, source: str, dest: str) -> None: ... - def do_local_file_removed(self, filename: str) -> None: ... + def do_local_file_moved(self, source: str, dest: str, /) -> None: ... + def do_local_file_removed(self, filename: str, /) -> None: ... def do_local_file_set_attributes( self, filename: str, info: FileInfo, flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None, + /, ) -> bool: ... - def do_parse_name(self, parse_name: str) -> File: ... + def do_parse_name(self, parse_name: str, /) -> File: ... @staticmethod def get_default() -> Vfs: ... def get_file_for_path(self, path: str) -> File: ... @@ -14890,7 +14909,7 @@ class Volume(GObject.GInterface, Protocol): self, flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Volume, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Volume, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -14899,7 +14918,7 @@ class Volume(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Volume] | None, + callback: _AsyncReadyVarArgsCallback[Volume] | None, ) -> None: ... def eject_finish(self, result: AsyncResult) -> bool: ... @overload @@ -14915,7 +14934,7 @@ class Volume(GObject.GInterface, Protocol): flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Volume, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Volume, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -14925,7 +14944,7 @@ class Volume(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Volume] | None, + callback: _AsyncReadyVarArgsCallback[Volume] | None, ) -> None: ... def eject_with_operation_finish(self, result: AsyncResult) -> bool: ... def enumerate_identifiers(self) -> list[str]: ... @@ -14951,7 +14970,7 @@ class Volume(GObject.GInterface, Protocol): flags: _MountMountFlagsValueType, mount_operation: MountOperation | None, cancellable: Cancellable | None, - callback: AsyncReadyCallback[Volume, Unpack[_DataTs]] | None, + callback: _AsyncReadyVarArgsCallback[Volume, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -14961,7 +14980,7 @@ class Volume(GObject.GInterface, Protocol): mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, *, - callback: AsyncReadyCallback[Volume] | None, + callback: _AsyncReadyVarArgsCallback[Volume] | None, ) -> None: ... def mount_finish(self, result: AsyncResult) -> bool: ... def should_automount(self) -> bool: ... @@ -15087,23 +15106,23 @@ class VolumeMonitor(GObject.Object): def priv(self) -> int: ... @staticmethod def adopt_orphan_mount(mount: Mount) -> Volume: ... - def do_drive_changed(self, drive: Drive) -> None: ... - def do_drive_connected(self, drive: Drive) -> None: ... - def do_drive_disconnected(self, drive: Drive) -> None: ... - def do_drive_eject_button(self, drive: Drive) -> None: ... - def do_drive_stop_button(self, drive: Drive) -> None: ... + def do_drive_changed(self, drive: Drive, /) -> None: ... + def do_drive_connected(self, drive: Drive, /) -> None: ... + def do_drive_disconnected(self, drive: Drive, /) -> None: ... + def do_drive_eject_button(self, drive: Drive, /) -> None: ... + def do_drive_stop_button(self, drive: Drive, /) -> None: ... def do_get_connected_drives(self) -> list[Drive]: ... - def do_get_mount_for_uuid(self, uuid: str) -> Mount | None: ... + def do_get_mount_for_uuid(self, uuid: str, /) -> Mount | None: ... def do_get_mounts(self) -> list[Mount]: ... - def do_get_volume_for_uuid(self, uuid: str) -> Volume | None: ... + def do_get_volume_for_uuid(self, uuid: str, /) -> Volume | None: ... def do_get_volumes(self) -> list[Volume]: ... - def do_mount_added(self, mount: Mount) -> None: ... - def do_mount_changed(self, mount: Mount) -> None: ... - def do_mount_pre_unmount(self, mount: Mount) -> None: ... - def do_mount_removed(self, mount: Mount) -> None: ... - def do_volume_added(self, volume: Volume) -> None: ... - def do_volume_changed(self, volume: Volume) -> None: ... - def do_volume_removed(self, volume: Volume) -> None: ... + def do_mount_added(self, mount: Mount, /) -> None: ... + def do_mount_changed(self, mount: Mount, /) -> None: ... + def do_mount_pre_unmount(self, mount: Mount, /) -> None: ... + def do_mount_removed(self, mount: Mount, /) -> None: ... + def do_volume_added(self, volume: Volume, /) -> None: ... + def do_volume_changed(self, volume: Volume, /) -> None: ... + def do_volume_removed(self, volume: Volume, /) -> None: ... @staticmethod def get() -> VolumeMonitor: ... def get_connected_drives(self) -> list[Drive]: ... diff --git a/src/gi-stubs/repository/Gly.pyi b/src/gi-stubs/repository/Gly.pyi index 71e0ef8e..7cfe76f2 100644 --- a/src/gi-stubs/repository/Gly.pyi +++ b/src/gi-stubs/repository/Gly.pyi @@ -92,7 +92,7 @@ class Creator(GObject.Object): def create_async( self, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Creator, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Creator, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -100,7 +100,7 @@ class Creator(GObject.Object): self, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Creator] | None, + callback: Gio._AsyncReadyVarArgsCallback[Creator] | None, ) -> None: ... def create_finish(self, result: Gio.AsyncResult) -> EncodedImage: ... @classmethod @@ -263,7 +263,7 @@ class Image(GObject.Object): self, frame_request: FrameRequest, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Image, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Image, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -272,7 +272,7 @@ class Image(GObject.Object): frame_request: FrameRequest, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Image] | None, + callback: Gio._AsyncReadyVarArgsCallback[Image] | None, ) -> None: ... def get_specific_frame_finish(self, result: Gio.AsyncResult) -> Frame: ... def get_transformation_orientation(self) -> int: ... @@ -286,7 +286,7 @@ class Image(GObject.Object): def next_frame_async( self, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Image, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Image, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -294,7 +294,7 @@ class Image(GObject.Object): self, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Image] | None, + callback: Gio._AsyncReadyVarArgsCallback[Image] | None, ) -> None: ... def next_frame_finish(self, result: Gio.AsyncResult) -> Frame: ... @@ -379,7 +379,7 @@ class Loader(GObject.Object): @staticmethod def get_mime_types_async( cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -387,7 +387,7 @@ class Loader(GObject.Object): def get_mime_types_async( cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[None] | None, + callback: Gio._AsyncReadyVarArgsCallback[None] | None, ) -> None: ... @staticmethod def get_mime_types_finish(result: Gio.AsyncResult) -> list[str]: ... @@ -400,7 +400,7 @@ class Loader(GObject.Object): def load_async( self, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Loader, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Loader, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -408,7 +408,7 @@ class Loader(GObject.Object): self, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Loader] | None, + callback: Gio._AsyncReadyVarArgsCallback[Loader] | None, ) -> None: ... def load_finish(self, result: Gio.AsyncResult) -> Image: ... @classmethod diff --git a/src/gi-stubs/repository/Gst.pyi b/src/gi-stubs/repository/Gst.pyi index fe4a92f8..ac90f523 100644 --- a/src/gi-stubs/repository/Gst.pyi +++ b/src/gi-stubs/repository/Gst.pyi @@ -740,8 +740,10 @@ class Allocator(Object): def alloc( self, size: int, params: AllocationParams | None = None ) -> Memory | None: ... - def do_alloc(self, size: int, params: AllocationParams | None) -> Memory | None: ... - def do_free(self, memory: Memory) -> None: ... + def do_alloc( + self, size: int, params: AllocationParams | None, / + ) -> Memory | None: ... + def do_free(self, memory: Memory, /) -> None: ... @staticmethod def find(name: str | None = None) -> Allocator | None: ... def free(self, memory: Memory) -> None: ... @@ -875,14 +877,14 @@ class Bin(Element, ChildProxy): Iterate over all elements in the bin, non-recursive. """ def add(self, *args: Element) -> None: ... - def do_add_element(self, element: Element) -> bool: ... - def do_deep_element_added(self, sub_bin: Bin, child: Element) -> None: ... - def do_deep_element_removed(self, sub_bin: Bin, child: Element) -> None: ... + def do_add_element(self, element: Element, /) -> bool: ... + def do_deep_element_added(self, sub_bin: Bin, child: Element, /) -> None: ... + def do_deep_element_removed(self, sub_bin: Bin, child: Element, /) -> None: ... def do_do_latency(self) -> bool: ... - def do_element_added(self, child: Element) -> None: ... - def do_element_removed(self, child: Element) -> None: ... - def do_handle_message(self, message: Message) -> None: ... - def do_remove_element(self, element: Element) -> bool: ... + def do_element_added(self, child: Element, /) -> None: ... + def do_element_removed(self, child: Element, /) -> None: ... + def do_handle_message(self, message: Message, /) -> None: ... + def do_remove_element(self, element: Element, /) -> bool: ... def find_unlinked_pad(self, direction: _PadDirectionValueType) -> Pad | None: ... def get_by_interface(self, iface: type[Any]) -> Element | None: ... def get_by_name(self, name: str) -> Element | None: ... @@ -1184,18 +1186,18 @@ class BufferPool(Object): max_buffers: int, ) -> bool: ... def do_acquire_buffer( - self, params: BufferPoolAcquireParams | None + self, params: BufferPoolAcquireParams | None, / ) -> tuple[FlowReturn, Buffer | None]: ... def do_alloc_buffer( - self, params: BufferPoolAcquireParams | None + self, params: BufferPoolAcquireParams | None, / ) -> tuple[FlowReturn, Buffer | None]: ... def do_flush_start(self) -> None: ... def do_flush_stop(self) -> None: ... - def do_free_buffer(self, buffer: Buffer) -> None: ... + def do_free_buffer(self, buffer: Buffer, /) -> None: ... def do_get_options(self) -> list[str]: ... - def do_release_buffer(self, buffer: Buffer) -> None: ... - def do_reset_buffer(self, buffer: Buffer) -> None: ... - def do_set_config(self, config: Structure) -> bool: ... + def do_release_buffer(self, buffer: Buffer, /) -> None: ... + def do_reset_buffer(self, buffer: Buffer, /) -> None: ... + def do_set_config(self, config: Structure, /) -> bool: ... def do_start(self) -> bool: ... def do_stop(self) -> bool: ... def get_config(self) -> Structure: ... @@ -1317,8 +1319,8 @@ class Bus(Object): ) -> bool: ... def create_watch(self) -> GLib.Source | None: ... def disable_sync_message_emission(self) -> None: ... - def do_message(self, message: Message) -> None: ... - def do_sync_message(self, message: Message) -> None: ... + def do_message(self, message: Message, /) -> None: ... + def do_sync_message(self, message: Message, /) -> None: ... def enable_sync_message_emission(self) -> None: ... def get_pollfd(self) -> GLib.PollFD: ... def have_pending(self) -> bool: ... @@ -1634,12 +1636,14 @@ class Clock(Object): cnum: int, cdenom: int, ) -> int: ... - def do_change_resolution(self, old_resolution: int, new_resolution: int) -> int: ... + def do_change_resolution( + self, old_resolution: int, new_resolution: int, / + ) -> int: ... def do_get_internal_time(self) -> int: ... def do_get_resolution(self) -> int: ... - def do_unschedule(self, entry: ClockEntry) -> None: ... - def do_wait(self, entry: ClockEntry) -> tuple[ClockReturn, int]: ... - def do_wait_async(self, entry: ClockEntry) -> ClockReturn: ... + def do_unschedule(self, entry: ClockEntry, /) -> None: ... + def do_wait(self, entry: ClockEntry, /) -> tuple[ClockReturn, int]: ... + def do_wait_async(self, entry: ClockEntry, /) -> ClockReturn: ... def get_calibration(self) -> tuple[int, int, int, int]: ... def get_internal_time(self) -> int: ... def get_master(self) -> Clock | None: ... @@ -1835,11 +1839,11 @@ class ControlBinding(Object): parent: Object = ..., ) -> None: ... def do_get_g_value_array( - self, timestamp: int, interval: int, values: Sequence[Any] + self, timestamp: int, interval: int, values: Sequence[Any], / ) -> bool: ... - def do_get_value(self, timestamp: int) -> Any | None: ... + def do_get_value(self, timestamp: int, /) -> Any | None: ... def do_sync_values( - self, object: Object, timestamp: int, last_sync: int + self, object: Object, timestamp: int, last_sync: int, / ) -> bool: ... def get_g_value_array( self, timestamp: int, interval: int, values: Sequence[Any] @@ -2111,8 +2115,8 @@ class Device(Object): parent: Object = ..., ) -> None: ... def create_element(self, name: str | None = None) -> Element | None: ... - def do_create_element(self, name: str | None) -> Element | None: ... - def do_reconfigure_element(self, element: Element) -> bool: ... + def do_create_element(self, name: str | None, /) -> Element | None: ... + def do_reconfigure_element(self, element: Element, /) -> bool: ... def get_caps(self) -> Caps | None: ... def get_device_class(self) -> str: ... def get_display_name(self) -> str: ... @@ -2474,29 +2478,32 @@ class Element(Object): def create_all_pads(self) -> None: ... def decorate_stream_id(self, stream_id: str) -> str: ... def do_change_state( - self, transition: _StateChangeValueType + self, transition: _StateChangeValueType, / ) -> StateChangeReturn: ... - def do_get_state(self, timeout: int) -> tuple[StateChangeReturn, State, State]: ... + def do_get_state( + self, timeout: int, / + ) -> tuple[StateChangeReturn, State, State]: ... def do_no_more_pads(self) -> None: ... - def do_pad_added(self, pad: Pad) -> None: ... - def do_pad_removed(self, pad: Pad) -> None: ... - def do_post_message(self, message: Message) -> bool: ... + def do_pad_added(self, pad: Pad, /) -> None: ... + def do_pad_removed(self, pad: Pad, /) -> None: ... + def do_post_message(self, message: Message, /) -> bool: ... def do_provide_clock(self) -> Clock | None: ... - def do_query(self, query: Query) -> bool: ... - def do_release_pad(self, pad: Pad) -> None: ... + def do_query(self, query: Query, /) -> bool: ... + def do_release_pad(self, pad: Pad, /) -> None: ... def do_request_new_pad( - self, templ: PadTemplate, name: str | None, caps: Caps | None + self, templ: PadTemplate, name: str | None, caps: Caps | None, / ) -> Pad | None: ... - def do_send_event(self, event: Event) -> bool: ... - def do_set_bus(self, bus: Bus | None) -> None: ... - def do_set_clock(self, clock: Clock | None) -> bool: ... - def do_set_context(self, context: Context) -> None: ... - def do_set_state(self, state: _StateValueType) -> StateChangeReturn: ... + def do_send_event(self, event: Event, /) -> bool: ... + def do_set_bus(self, bus: Bus | None, /) -> None: ... + def do_set_clock(self, clock: Clock | None, /) -> bool: ... + def do_set_context(self, context: Context, /) -> None: ... + def do_set_state(self, state: _StateValueType, /) -> StateChangeReturn: ... def do_state_changed( self, oldstate: _StateValueType, newstate: _StateValueType, pending: _StateValueType, + /, ) -> None: ... def foreach_pad( self, @@ -3835,7 +3842,7 @@ class Object(GObject.InitiallyUnowned): excluded_props: Sequence[str] | None = None, ) -> None: ... def default_error(self, error: GLib.Error, debug: str | None = None) -> None: ... - def do_deep_notify(self, orig: Object, pspec: GObject.ParamSpec) -> None: ... + def do_deep_notify(self, orig: Object, pspec: GObject.ParamSpec, /) -> None: ... def get_control_binding(self, property_name: str) -> ControlBinding | None: ... def get_control_rate(self) -> int: ... def get_g_value_array( @@ -4050,8 +4057,8 @@ class Pad(Object): def create_stream_id( self, parent: Element, stream_id: str | None = None ) -> str: ... - def do_linked(self, peer: Pad) -> None: ... - def do_unlinked(self, peer: Pad) -> None: ... + def do_linked(self, peer: Pad, /) -> None: ... + def do_unlinked(self, peer: Pad, /) -> None: ... def event_default(self, parent: Object | None, event: Event) -> bool: ... def forward( self, @@ -4339,7 +4346,7 @@ class PadTemplate(Object): name: str | None = ..., parent: Object = ..., ) -> None: ... - def do_pad_created(self, pad: Pad) -> None: ... + def do_pad_created(self, pad: Pad, /) -> None: ... def get_caps(self) -> Caps: ... def get_documentation_caps(self) -> Caps: ... @classmethod @@ -5542,7 +5549,7 @@ class StreamCollection(Object): parent: Object = ..., ) -> None: ... def add_stream(self, stream: Stream) -> bool: ... - def do_stream_notify(self, stream: Stream, pspec: GObject.ParamSpec) -> None: ... + def do_stream_notify(self, stream: Stream, pspec: GObject.ParamSpec, /) -> None: ... def get_size(self) -> int: ... def get_stream(self, index: int) -> Stream | None: ... def get_upstream_id(self) -> str | None: ... @@ -6026,11 +6033,11 @@ class TaskPool(Object): def cleanup(self) -> None: ... def dispose_handle(self, id: int | Any | None = None) -> None: ... def do_cleanup(self) -> None: ... - def do_dispose_handle(self, id: int | Any | None) -> None: ... - def do_join(self, id: int | Any | None) -> None: ... + def do_dispose_handle(self, id: int | Any | None, /) -> None: ... + def do_join(self, id: int | Any | None, /) -> None: ... def do_prepare(self) -> None: ... def do_push( - self, func: Callable[[Unpack[_DataTs]], None], *user_data: Unpack[_DataTs] + self, func: Callable[[Any | None], None], user_data: int | Any | None, / ) -> int: ... def join(self, id: int | Any | None = None) -> None: ... @classmethod diff --git a/src/gi-stubs/repository/GstApp.pyi b/src/gi-stubs/repository/GstApp.pyi index f51fd8c2..c424ea7e 100644 --- a/src/gi-stubs/repository/GstApp.pyi +++ b/src/gi-stubs/repository/GstApp.pyi @@ -181,9 +181,9 @@ class AppSink(GstBase.BaseSink, Gst.URIHandler): def do_new_sample(self) -> Gst.FlowReturn: ... def do_pull_preroll(self) -> Gst.Sample | None: ... def do_pull_sample(self) -> Gst.Sample | None: ... - def do_try_pull_object(self, timeout: int) -> Gst.MiniObject | None: ... - def do_try_pull_preroll(self, timeout: int) -> Gst.Sample | None: ... - def do_try_pull_sample(self, timeout: int) -> Gst.Sample | None: ... + def do_try_pull_object(self, timeout: int, /) -> Gst.MiniObject | None: ... + def do_try_pull_preroll(self, timeout: int, /) -> Gst.Sample | None: ... + def do_try_pull_sample(self, timeout: int, /) -> Gst.Sample | None: ... def get_buffer_list_support(self) -> bool: ... def get_caps(self) -> Gst.Caps | None: ... def get_current_level_buffers(self) -> int: ... @@ -455,11 +455,11 @@ class AppSrc(GstBase.BaseSrc, Gst.URIHandler): ) -> None: ... def do_end_of_stream(self) -> Gst.FlowReturn: ... def do_enough_data(self) -> None: ... - def do_need_data(self, length: int) -> None: ... - def do_push_buffer(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... - def do_push_buffer_list(self, buffer_list: Gst.BufferList) -> Gst.FlowReturn: ... - def do_push_sample(self, sample: Gst.Sample) -> Gst.FlowReturn: ... - def do_seek_data(self, offset: int) -> bool: ... + def do_need_data(self, length: int, /) -> None: ... + def do_push_buffer(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_push_buffer_list(self, buffer_list: Gst.BufferList, /) -> Gst.FlowReturn: ... + def do_push_sample(self, sample: Gst.Sample, /) -> Gst.FlowReturn: ... + def do_seek_data(self, offset: int, /) -> bool: ... def end_of_stream(self) -> Gst.FlowReturn: ... def get_caps(self) -> Gst.Caps | None: ... def get_current_level_buffers(self) -> int: ... diff --git a/src/gi-stubs/repository/GstAudio.pyi b/src/gi-stubs/repository/GstAudio.pyi index 37449684..fd62cf1a 100644 --- a/src/gi-stubs/repository/GstAudio.pyi +++ b/src/gi-stubs/repository/GstAudio.pyi @@ -294,8 +294,9 @@ class AudioAggregator(GstBase.Aggregator): outbuf: Gst.Buffer, out_offset: int, num_frames: int, + /, ) -> bool: ... - def do_create_output_buffer(self, num_frames: int) -> Gst.Buffer: ... + def do_create_output_buffer(self, num_frames: int, /) -> Gst.Buffer: ... def set_sink_caps(self, pad: AudioAggregatorPad, caps: Gst.Caps) -> None: ... class AudioAggregatorClass(_gi.Struct): @@ -488,7 +489,7 @@ class AudioAggregatorPad(GstBase.AggregatorPad): parent: Gst.Object = ..., ) -> None: ... def do_convert_buffer( - self, in_info: AudioInfo, out_info: AudioInfo, buffer: Gst.Buffer + self, in_info: AudioInfo, out_info: AudioInfo, buffer: Gst.Buffer, / ) -> Gst.Buffer: ... def do_update_conversion_info(self) -> None: ... @@ -645,7 +646,7 @@ class AudioBaseSink(GstBase.BaseSink): ) -> None: ... def create_ringbuffer(self) -> AudioRingBuffer | None: ... def do_create_ringbuffer(self) -> AudioRingBuffer | None: ... - def do_payload(self, buffer: Gst.Buffer) -> Gst.Buffer: ... + def do_payload(self, buffer: Gst.Buffer, /) -> Gst.Buffer: ... def get_alignment_threshold(self) -> int: ... def get_discont_wait(self) -> int: ... def get_drift_tolerance(self) -> int: ... @@ -933,8 +934,8 @@ class AudioCdSrc(GstBase.PushSrc, Gst.URIHandler): ) -> None: ... def add_track(self, track: AudioCdSrcTrack) -> bool: ... def do_close(self) -> None: ... - def do_open(self, device: str) -> bool: ... - def do_read_sector(self, sector: int) -> Gst.Buffer: ... + def do_open(self, device: str, /) -> bool: ... + def do_read_sector(self, sector: int, /) -> Gst.Buffer: ... class AudioCdSrcClass(_gi.Struct): """ @@ -1183,24 +1184,26 @@ class AudioDecoder(Gst.Element): ) -> None: ... def allocate_output_buffer(self, size: int) -> Gst.Buffer: ... def do_close(self) -> bool: ... - def do_decide_allocation(self, query: Gst.Query) -> bool: ... - def do_flush(self, hard: bool) -> None: ... - def do_getcaps(self, filter: Gst.Caps) -> Gst.Caps: ... - def do_handle_frame(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... + def do_decide_allocation(self, query: Gst.Query, /) -> bool: ... + def do_flush(self, hard: bool, /) -> None: ... + def do_getcaps(self, filter: Gst.Caps, /) -> Gst.Caps: ... + def do_handle_frame(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... def do_negotiate(self) -> bool: ... def do_open(self) -> bool: ... - def do_parse(self, adapter: GstBase.Adapter) -> tuple[Gst.FlowReturn, int, int]: ... - def do_pre_push(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... - def do_propose_allocation(self, query: Gst.Query) -> bool: ... - def do_set_format(self, caps: Gst.Caps) -> bool: ... - def do_sink_event(self, event: Gst.Event) -> bool: ... - def do_sink_query(self, query: Gst.Query) -> bool: ... - def do_src_event(self, event: Gst.Event) -> bool: ... - def do_src_query(self, query: Gst.Query) -> bool: ... + def do_parse( + self, adapter: GstBase.Adapter, / + ) -> tuple[Gst.FlowReturn, int, int]: ... + def do_pre_push(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_propose_allocation(self, query: Gst.Query, /) -> bool: ... + def do_set_format(self, caps: Gst.Caps, /) -> bool: ... + def do_sink_event(self, event: Gst.Event, /) -> bool: ... + def do_sink_query(self, query: Gst.Query, /) -> bool: ... + def do_src_event(self, event: Gst.Event, /) -> bool: ... + def do_src_query(self, query: Gst.Query, /) -> bool: ... def do_start(self) -> bool: ... def do_stop(self) -> bool: ... def do_transform_meta( - self, outbuf: Gst.Buffer, meta: Gst.Meta, inbuf: Gst.Buffer + self, outbuf: Gst.Buffer, meta: Gst.Meta, inbuf: Gst.Buffer, / ) -> bool: ... def finish_frame(self, buf: Gst.Buffer | None, frames: int) -> Gst.FlowReturn: ... def finish_subframe(self, buf: Gst.Buffer | None = None) -> Gst.FlowReturn: ... @@ -1381,23 +1384,23 @@ class AudioEncoder(Gst.Element, Gst.Preset): ) -> None: ... def allocate_output_buffer(self, size: int) -> Gst.Buffer: ... def do_close(self) -> bool: ... - def do_decide_allocation(self, query: Gst.Query) -> bool: ... + def do_decide_allocation(self, query: Gst.Query, /) -> bool: ... def do_flush(self) -> None: ... - def do_getcaps(self, filter: Gst.Caps) -> Gst.Caps: ... - def do_handle_frame(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... + def do_getcaps(self, filter: Gst.Caps, /) -> Gst.Caps: ... + def do_handle_frame(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... def do_negotiate(self) -> bool: ... def do_open(self) -> bool: ... - def do_pre_push(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... - def do_propose_allocation(self, query: Gst.Query) -> bool: ... - def do_set_format(self, info: AudioInfo) -> bool: ... - def do_sink_event(self, event: Gst.Event) -> bool: ... - def do_sink_query(self, query: Gst.Query) -> bool: ... - def do_src_event(self, event: Gst.Event) -> bool: ... - def do_src_query(self, query: Gst.Query) -> bool: ... + def do_pre_push(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_propose_allocation(self, query: Gst.Query, /) -> bool: ... + def do_set_format(self, info: AudioInfo, /) -> bool: ... + def do_sink_event(self, event: Gst.Event, /) -> bool: ... + def do_sink_query(self, query: Gst.Query, /) -> bool: ... + def do_src_event(self, event: Gst.Event, /) -> bool: ... + def do_src_query(self, query: Gst.Query, /) -> bool: ... def do_start(self) -> bool: ... def do_stop(self) -> bool: ... def do_transform_meta( - self, outbuf: Gst.Buffer, meta: Gst.Meta, inbuf: Gst.Buffer + self, outbuf: Gst.Buffer, meta: Gst.Meta, inbuf: Gst.Buffer, / ) -> bool: ... def finish_frame( self, buffer: Gst.Buffer | None, samples: int @@ -1525,7 +1528,7 @@ class AudioFilter(GstBase.BaseTransform): self, *, qos: bool = ..., name: str | None = ..., parent: Gst.Object = ... ) -> None: ... def add_pad_templates(self, allowed_caps: Gst.Caps) -> None: ... - def do_setup(self, info: AudioInfo) -> bool: ... + def do_setup(self, info: AudioInfo, /) -> bool: ... class AudioFilterClass(_gi.Struct): """ @@ -1775,12 +1778,12 @@ class AudioRingBuffer(Gst.Object): def debug_spec_caps(spec: AudioRingBufferSpec) -> None: ... def delay(self) -> int: ... def device_is_open(self) -> bool: ... - def do_acquire(self, spec: AudioRingBufferSpec) -> bool: ... - def do_activate(self, active: bool) -> bool: ... + def do_acquire(self, spec: AudioRingBufferSpec, /) -> bool: ... + def do_activate(self, active: bool, /) -> bool: ... def do_clear_all(self) -> None: ... def do_close_device(self) -> bool: ... def do_commit( - self, sample: int, data: Sequence[int], out_samples: int, accum: int + self, sample: int, data: Sequence[int], out_samples: int, accum: int, / ) -> tuple[int, int, int]: ... def do_delay(self) -> int: ... def do_open_device(self) -> bool: ... @@ -1983,12 +1986,12 @@ class AudioSink(AudioBaseSink): def do_delay(self) -> int: ... def do_open(self) -> bool: ... def do_pause(self) -> None: ... - def do_prepare(self, spec: AudioRingBufferSpec) -> bool: ... + def do_prepare(self, spec: AudioRingBufferSpec, /) -> bool: ... def do_reset(self) -> None: ... def do_resume(self) -> None: ... def do_stop(self) -> None: ... def do_unprepare(self) -> bool: ... - def do_write(self, data: Sequence[int]) -> int: ... + def do_write(self, data: Sequence[int], /) -> int: ... class AudioSinkClass(_gi.Struct): """ @@ -2109,8 +2112,8 @@ class AudioSrc(AudioBaseSrc): def do_close(self) -> bool: ... def do_delay(self) -> int: ... def do_open(self) -> bool: ... - def do_prepare(self, spec: AudioRingBufferSpec) -> bool: ... - def do_read(self, data: Sequence[int]) -> tuple[int, int]: ... + def do_prepare(self, spec: AudioRingBufferSpec, /) -> bool: ... + def do_read(self, data: Sequence[int], /) -> tuple[int, int]: ... def do_reset(self) -> None: ... def do_unprepare(self) -> bool: ... diff --git a/src/gi-stubs/repository/GstBase.pyi b/src/gi-stubs/repository/GstBase.pyi index 32667227..1df87a0e 100644 --- a/src/gi-stubs/repository/GstBase.pyi +++ b/src/gi-stubs/repository/GstBase.pyi @@ -191,46 +191,48 @@ class Aggregator(Gst.Element): name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... - def do_aggregate(self, timeout: bool) -> Gst.FlowReturn: ... + def do_aggregate(self, timeout: bool, /) -> Gst.FlowReturn: ... def do_clip( - self, aggregator_pad: AggregatorPad, buf: Gst.Buffer + self, aggregator_pad: AggregatorPad, buf: Gst.Buffer, / ) -> Gst.Buffer | None: ... def do_create_new_pad( - self, templ: Gst.PadTemplate, req_name: str | None, caps: Gst.Caps | None + self, templ: Gst.PadTemplate, req_name: str | None, caps: Gst.Caps | None, / ) -> AggregatorPad: ... - def do_decide_allocation(self, query: Gst.Query) -> bool: ... - def do_finish_buffer(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... - def do_finish_buffer_list(self, bufferlist: Gst.BufferList) -> Gst.FlowReturn: ... - def do_fixate_src_caps(self, caps: Gst.Caps) -> Gst.Caps: ... + def do_decide_allocation(self, query: Gst.Query, /) -> bool: ... + def do_finish_buffer(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_finish_buffer_list( + self, bufferlist: Gst.BufferList, / + ) -> Gst.FlowReturn: ... + def do_fixate_src_caps(self, caps: Gst.Caps, /) -> Gst.Caps: ... def do_flush(self) -> Gst.FlowReturn: ... def do_get_next_time(self) -> int: ... def do_negotiate(self) -> bool: ... - def do_negotiated_src_caps(self, caps: Gst.Caps) -> bool: ... + def do_negotiated_src_caps(self, caps: Gst.Caps, /) -> bool: ... def do_peek_next_sample( - self, aggregator_pad: AggregatorPad + self, aggregator_pad: AggregatorPad, / ) -> Gst.Sample | None: ... def do_propose_allocation( - self, pad: AggregatorPad, decide_query: Gst.Query, query: Gst.Query + self, pad: AggregatorPad, decide_query: Gst.Query, query: Gst.Query, / ) -> bool: ... def do_sink_event( - self, aggregator_pad: AggregatorPad, event: Gst.Event + self, aggregator_pad: AggregatorPad, event: Gst.Event, / ) -> bool: ... def do_sink_event_pre_queue( - self, aggregator_pad: AggregatorPad, event: Gst.Event + self, aggregator_pad: AggregatorPad, event: Gst.Event, / ) -> Gst.FlowReturn: ... def do_sink_query( - self, aggregator_pad: AggregatorPad, query: Gst.Query + self, aggregator_pad: AggregatorPad, query: Gst.Query, / ) -> bool: ... def do_sink_query_pre_queue( - self, aggregator_pad: AggregatorPad, query: Gst.Query + self, aggregator_pad: AggregatorPad, query: Gst.Query, / ) -> bool: ... - def do_src_activate(self, mode: Gst._PadModeValueType, active: bool) -> bool: ... - def do_src_event(self, event: Gst.Event) -> bool: ... - def do_src_query(self, query: Gst.Query) -> bool: ... + def do_src_activate(self, mode: Gst._PadModeValueType, active: bool, /) -> bool: ... + def do_src_event(self, event: Gst.Event, /) -> bool: ... + def do_src_query(self, query: Gst.Query, /) -> bool: ... def do_start(self) -> bool: ... def do_stop(self) -> bool: ... def do_update_src_caps( - self, caps: Gst.Caps + self, caps: Gst.Caps, / ) -> tuple[Gst.FlowReturn, Gst.Caps | None]: ... def finish_buffer(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... def finish_buffer_list(self, bufferlist: Gst.BufferList) -> Gst.FlowReturn: ... @@ -406,8 +408,8 @@ class AggregatorPad(Gst.Pad): name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... - def do_flush(self, aggregator: Aggregator) -> Gst.FlowReturn: ... - def do_skip_buffer(self, aggregator: Aggregator, buffer: Gst.Buffer) -> bool: ... + def do_flush(self, aggregator: Aggregator, /) -> Gst.FlowReturn: ... + def do_skip_buffer(self, aggregator: Aggregator, buffer: Gst.Buffer, /) -> bool: ... def drop_buffer(self) -> bool: ... def has_buffer(self) -> bool: ... def is_eos(self) -> bool: ... @@ -508,16 +510,19 @@ class BaseParse(Gst.Element): src_value: int, dest_format: Gst._FormatValueType, dest_value: int, + /, ) -> bool: ... - def do_detect(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... - def do_get_sink_caps(self, filter: Gst.Caps) -> Gst.Caps: ... - def do_handle_frame(self, frame: BaseParseFrame) -> tuple[Gst.FlowReturn, int]: ... - def do_pre_push_frame(self, frame: BaseParseFrame) -> Gst.FlowReturn: ... - def do_set_sink_caps(self, caps: Gst.Caps) -> bool: ... - def do_sink_event(self, event: Gst.Event) -> bool: ... - def do_sink_query(self, query: Gst.Query) -> bool: ... - def do_src_event(self, event: Gst.Event) -> bool: ... - def do_src_query(self, query: Gst.Query) -> bool: ... + def do_detect(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_get_sink_caps(self, filter: Gst.Caps, /) -> Gst.Caps: ... + def do_handle_frame( + self, frame: BaseParseFrame, / + ) -> tuple[Gst.FlowReturn, int]: ... + def do_pre_push_frame(self, frame: BaseParseFrame, /) -> Gst.FlowReturn: ... + def do_set_sink_caps(self, caps: Gst.Caps, /) -> bool: ... + def do_sink_event(self, event: Gst.Event, /) -> bool: ... + def do_sink_query(self, query: Gst.Query, /) -> bool: ... + def do_src_event(self, event: Gst.Event, /) -> bool: ... + def do_src_query(self, query: Gst.Query, /) -> bool: ... def do_start(self) -> bool: ... def do_stop(self) -> bool: ... def drain(self) -> None: ... @@ -742,24 +747,24 @@ class BaseSink(Gst.Element): name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... - def do_activate_pull(self, active: bool) -> bool: ... - def do_event(self, event: Gst.Event) -> bool: ... - def do_fixate(self, caps: Gst.Caps) -> Gst.Caps: ... - def do_get_caps(self, filter: Gst.Caps | None) -> Gst.Caps: ... - def do_get_times(self, buffer: Gst.Buffer) -> tuple[int, int]: ... - def do_prepare(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... - def do_prepare_list(self, buffer_list: Gst.BufferList) -> Gst.FlowReturn: ... - def do_preroll(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... - def do_propose_allocation(self, query: Gst.Query) -> bool: ... - def do_query(self, query: Gst.Query) -> bool: ... - def do_render(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... - def do_render_list(self, buffer_list: Gst.BufferList) -> Gst.FlowReturn: ... - def do_set_caps(self, caps: Gst.Caps) -> bool: ... + def do_activate_pull(self, active: bool, /) -> bool: ... + def do_event(self, event: Gst.Event, /) -> bool: ... + def do_fixate(self, caps: Gst.Caps, /) -> Gst.Caps: ... + def do_get_caps(self, filter: Gst.Caps | None, /) -> Gst.Caps: ... + def do_get_times(self, buffer: Gst.Buffer, /) -> tuple[int, int]: ... + def do_prepare(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_prepare_list(self, buffer_list: Gst.BufferList, /) -> Gst.FlowReturn: ... + def do_preroll(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_propose_allocation(self, query: Gst.Query, /) -> bool: ... + def do_query(self, query: Gst.Query, /) -> bool: ... + def do_render(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_render_list(self, buffer_list: Gst.BufferList, /) -> Gst.FlowReturn: ... + def do_set_caps(self, caps: Gst.Caps, /) -> bool: ... def do_start(self) -> bool: ... def do_stop(self) -> bool: ... def do_unlock(self) -> bool: ... def do_unlock_stop(self) -> bool: ... - def do_wait_event(self, event: Gst.Event) -> Gst.FlowReturn: ... + def do_wait_event(self, event: Gst.Event, /) -> Gst.FlowReturn: ... def get_blocksize(self) -> int: ... def get_drop_out_of_segment(self) -> bool: ... def get_last_sample(self) -> Gst.Sample | None: ... @@ -938,26 +943,26 @@ class BaseSrc(Gst.Element): parent: Gst.Object = ..., ) -> None: ... def do_alloc( - self, offset: int, size: int + self, offset: int, size: int, / ) -> tuple[Gst.FlowReturn, Gst.Buffer | None]: ... def do_create( - self, offset: int, size: int, buf: Gst.Buffer | None + self, offset: int, size: int, buf: Gst.Buffer | None, / ) -> tuple[Gst.FlowReturn, Gst.Buffer | None]: ... - def do_decide_allocation(self, query: Gst.Query) -> bool: ... - def do_do_seek(self, segment: Gst.Segment) -> bool: ... - def do_event(self, event: Gst.Event) -> bool: ... - def do_fill(self, offset: int, size: int, buf: Gst.Buffer) -> Gst.FlowReturn: ... - def do_fixate(self, caps: Gst.Caps) -> Gst.Caps: ... - def do_get_caps(self, filter: Gst.Caps | None) -> Gst.Caps: ... + def do_decide_allocation(self, query: Gst.Query, /) -> bool: ... + def do_do_seek(self, segment: Gst.Segment, /) -> bool: ... + def do_event(self, event: Gst.Event, /) -> bool: ... + def do_fill(self, offset: int, size: int, buf: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_fixate(self, caps: Gst.Caps, /) -> Gst.Caps: ... + def do_get_caps(self, filter: Gst.Caps | None, /) -> Gst.Caps: ... def do_get_size(self) -> tuple[bool, int]: ... - def do_get_times(self, buffer: Gst.Buffer) -> tuple[int, int]: ... + def do_get_times(self, buffer: Gst.Buffer, /) -> tuple[int, int]: ... def do_is_seekable(self) -> bool: ... def do_negotiate(self) -> bool: ... def do_prepare_seek_segment( - self, seek: Gst.Event, segment: Gst.Segment + self, seek: Gst.Event, segment: Gst.Segment, / ) -> bool: ... - def do_query(self, query: Gst.Query) -> bool: ... - def do_set_caps(self, caps: Gst.Caps) -> bool: ... + def do_query(self, query: Gst.Query, /) -> bool: ... + def do_set_caps(self, caps: Gst.Caps, /) -> bool: ... def do_start(self) -> bool: ... def do_stop(self) -> bool: ... def do_unlock(self) -> bool: ... @@ -1099,43 +1104,49 @@ class BaseTransform(Gst.Element): self, *, qos: bool = ..., name: str | None = ..., parent: Gst.Object = ... ) -> None: ... def do_accept_caps( - self, direction: Gst._PadDirectionValueType, caps: Gst.Caps + self, direction: Gst._PadDirectionValueType, caps: Gst.Caps, / ) -> bool: ... - def do_before_transform(self, buffer: Gst.Buffer) -> None: ... - def do_copy_metadata(self, input: Gst.Buffer, outbuf: Gst.Buffer) -> bool: ... - def do_decide_allocation(self, query: Gst.Query) -> bool: ... + def do_before_transform(self, buffer: Gst.Buffer, /) -> None: ... + def do_copy_metadata(self, input: Gst.Buffer, outbuf: Gst.Buffer, /) -> bool: ... + def do_decide_allocation(self, query: Gst.Query, /) -> bool: ... def do_filter_meta( - self, query: Gst.Query, api: type[Any], params: Gst.Structure + self, query: Gst.Query, api: type[Any], params: Gst.Structure, / ) -> bool: ... def do_fixate_caps( - self, direction: Gst._PadDirectionValueType, caps: Gst.Caps, othercaps: Gst.Caps + self, + direction: Gst._PadDirectionValueType, + caps: Gst.Caps, + othercaps: Gst.Caps, + /, ) -> Gst.Caps: ... def do_generate_output(self) -> tuple[Gst.FlowReturn, Gst.Buffer]: ... - def do_get_unit_size(self, caps: Gst.Caps) -> tuple[bool, int]: ... + def do_get_unit_size(self, caps: Gst.Caps, /) -> tuple[bool, int]: ... def do_prepare_output_buffer( - self, input: Gst.Buffer + self, input: Gst.Buffer, / ) -> tuple[Gst.FlowReturn, Gst.Buffer]: ... def do_propose_allocation( - self, decide_query: Gst.Query, query: Gst.Query + self, decide_query: Gst.Query, query: Gst.Query, / ) -> bool: ... def do_query( - self, direction: Gst._PadDirectionValueType, query: Gst.Query + self, direction: Gst._PadDirectionValueType, query: Gst.Query, / ) -> bool: ... - def do_set_caps(self, incaps: Gst.Caps, outcaps: Gst.Caps) -> bool: ... - def do_sink_event(self, event: Gst.Event) -> bool: ... - def do_src_event(self, event: Gst.Event) -> bool: ... + def do_set_caps(self, incaps: Gst.Caps, outcaps: Gst.Caps, /) -> bool: ... + def do_sink_event(self, event: Gst.Event, /) -> bool: ... + def do_src_event(self, event: Gst.Event, /) -> bool: ... def do_start(self) -> bool: ... def do_stop(self) -> bool: ... def do_submit_input_buffer( - self, is_discont: bool, input: Gst.Buffer + self, is_discont: bool, input: Gst.Buffer, / + ) -> Gst.FlowReturn: ... + def do_transform( + self, inbuf: Gst.Buffer, outbuf: Gst.Buffer, / ) -> Gst.FlowReturn: ... - def do_transform(self, inbuf: Gst.Buffer, outbuf: Gst.Buffer) -> Gst.FlowReturn: ... def do_transform_caps( - self, direction: Gst._PadDirectionValueType, caps: Gst.Caps, filter: Gst.Caps + self, direction: Gst._PadDirectionValueType, caps: Gst.Caps, filter: Gst.Caps, / ) -> Gst.Caps: ... - def do_transform_ip(self, buf: Gst.Buffer) -> Gst.FlowReturn: ... + def do_transform_ip(self, buf: Gst.Buffer, /) -> Gst.FlowReturn: ... def do_transform_meta( - self, outbuf: Gst.Buffer, meta: Gst.Meta, inbuf: Gst.Buffer + self, outbuf: Gst.Buffer, meta: Gst.Meta, inbuf: Gst.Buffer, / ) -> bool: ... def do_transform_size( self, @@ -1143,6 +1154,7 @@ class BaseTransform(Gst.Element): caps: Gst.Caps, size: int, othercaps: Gst.Caps, + /, ) -> tuple[bool, int]: ... def get_allocator(self) -> tuple[Gst.Allocator | None, Gst.AllocationParams]: ... def get_buffer_pool(self) -> Gst.BufferPool | None: ... @@ -1730,9 +1742,9 @@ class PushSrc(BaseSrc): ) -> None: ... def do_alloc(self) -> tuple[Gst.FlowReturn, Gst.Buffer | None]: ... def do_create( - self, buf: Gst.Buffer | None + self, buf: Gst.Buffer | None, / ) -> tuple[Gst.FlowReturn, Gst.Buffer | None]: ... - def do_fill(self, buf: Gst.Buffer) -> Gst.FlowReturn: ... + def do_fill(self, buf: Gst.Buffer, /) -> Gst.FlowReturn: ... class PushSrcClass(_gi.Struct): """ diff --git a/src/gi-stubs/repository/GstPbutils.pyi b/src/gi-stubs/repository/GstPbutils.pyi index 236d716b..ccae833e 100644 --- a/src/gi-stubs/repository/GstPbutils.pyi +++ b/src/gi-stubs/repository/GstPbutils.pyi @@ -220,8 +220,8 @@ class AudioVisualizer(Gst.Element): name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... - def do_decide_allocation(self, query: Gst.Query) -> bool: ... - def do_render(self, audio: Gst.Buffer, video: GstVideo.VideoFrame) -> bool: ... + def do_decide_allocation(self, query: Gst.Query, /) -> bool: ... + def do_render(self, audio: Gst.Buffer, video: GstVideo.VideoFrame, /) -> bool: ... def do_setup(self) -> bool: ... class AudioVisualizerClass(_gi.Struct): @@ -286,10 +286,10 @@ class Discoverer(GObject.Object): def __init__(self, *, timeout: int = ..., use_cache: bool = ...) -> None: ... def discover_uri(self, uri: str) -> DiscovererInfo: ... def discover_uri_async(self, uri: str) -> bool: ... - def do_discovered(self, info: DiscovererInfo, err: GLib.Error) -> None: ... + def do_discovered(self, info: DiscovererInfo, err: GLib.Error, /) -> None: ... def do_finished(self) -> None: ... - def do_load_serialize_info(self, uri: str) -> DiscovererInfo: ... - def do_source_setup(self, source: Gst.Element) -> None: ... + def do_load_serialize_info(self, uri: str, /) -> DiscovererInfo: ... + def do_source_setup(self, source: Gst.Element, /) -> None: ... def do_starting(self) -> None: ... @classmethod def new(cls, timeout: int) -> Discoverer: ... diff --git a/src/gi-stubs/repository/GstRtp.pyi b/src/gi-stubs/repository/GstRtp.pyi index 08cf9e79..b8e3cca3 100644 --- a/src/gi-stubs/repository/GstRtp.pyi +++ b/src/gi-stubs/repository/GstRtp.pyi @@ -517,11 +517,11 @@ class RTPBaseDepayload(Gst.Element): parent: Gst.Object = ..., ) -> None: ... def delayed(self) -> None: ... - def do_handle_event(self, event: Gst.Event) -> bool: ... - def do_packet_lost(self, event: Gst.Event) -> bool: ... - def do_process(self, in_: Gst.Buffer) -> Gst.Buffer: ... - def do_process_rtp_packet(self, rtp_buffer: RTPBuffer) -> Gst.Buffer: ... - def do_set_caps(self, caps: Gst.Caps) -> bool: ... + def do_handle_event(self, event: Gst.Event, /) -> bool: ... + def do_packet_lost(self, event: Gst.Event, /) -> bool: ... + def do_process(self, in_: Gst.Buffer, /) -> Gst.Buffer: ... + def do_process_rtp_packet(self, rtp_buffer: RTPBuffer, /) -> Gst.Buffer: ... + def do_set_caps(self, caps: Gst.Caps, /) -> bool: ... def dropped(self) -> None: ... def flush(self, keep_current: bool) -> None: ... def is_aggregate_hdrext_enabled(self) -> bool: ... @@ -718,12 +718,12 @@ class RTPBasePayload(Gst.Element): def allocate_output_buffer( self, payload_len: int, pad_len: int, csrc_count: int ) -> Gst.Buffer: ... - def do_get_caps(self, pad: Gst.Pad, filter: Gst.Caps) -> Gst.Caps: ... - def do_handle_buffer(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... - def do_query(self, pad: Gst.Pad, query: Gst.Query) -> bool: ... - def do_set_caps(self, caps: Gst.Caps) -> bool: ... - def do_sink_event(self, event: Gst.Event) -> bool: ... - def do_src_event(self, event: Gst.Event) -> bool: ... + def do_get_caps(self, pad: Gst.Pad, filter: Gst.Caps, /) -> Gst.Caps: ... + def do_handle_buffer(self, buffer: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_query(self, pad: Gst.Pad, query: Gst.Query, /) -> bool: ... + def do_set_caps(self, caps: Gst.Caps, /) -> bool: ... + def do_sink_event(self, event: Gst.Event, /) -> bool: ... + def do_src_event(self, event: Gst.Event, /) -> bool: ... def get_source_count(self, buffer: Gst.Buffer) -> int: ... def is_filled(self, size: int, duration: int) -> bool: ... def is_source_info_enabled(self) -> bool: ... @@ -881,26 +881,28 @@ class RTPHeaderExtension(Gst.Element): def __init__(self, *, name: str | None = ..., parent: Gst.Object = ...) -> None: ... @staticmethod def create_from_uri(uri: str) -> RTPHeaderExtension | None: ... - def do_get_max_size(self, input_meta: Gst.Buffer) -> int: ... + def do_get_max_size(self, input_meta: Gst.Buffer, /) -> int: ... def do_get_supported_flags(self) -> RTPHeaderExtensionFlags: ... def do_read( self, read_flags: _RTPHeaderExtensionFlagsValueType, data: Sequence[int], buffer: Gst.Buffer, + /, ) -> bool: ... def do_set_attributes( - self, direction: _RTPHeaderExtensionDirectionValueType, attributes: str + self, direction: _RTPHeaderExtensionDirectionValueType, attributes: str, / ) -> bool: ... - def do_set_caps_from_attributes(self, caps: Gst.Caps) -> bool: ... - def do_set_non_rtp_sink_caps(self, caps: Gst.Caps) -> bool: ... - def do_update_non_rtp_src_caps(self, caps: Gst.Caps) -> bool: ... + def do_set_caps_from_attributes(self, caps: Gst.Caps, /) -> bool: ... + def do_set_non_rtp_sink_caps(self, caps: Gst.Caps, /) -> bool: ... + def do_update_non_rtp_src_caps(self, caps: Gst.Caps, /) -> bool: ... def do_write( self, input_meta: Gst.Buffer, write_flags: _RTPHeaderExtensionFlagsValueType, output: Gst.Buffer, data: Sequence[int], + /, ) -> int: ... def get_direction(self) -> RTPHeaderExtensionDirection: ... def get_id(self) -> int: ... diff --git a/src/gi-stubs/repository/GstRtspServer.pyi b/src/gi-stubs/repository/GstRtspServer.pyi index cf06bf45..00c9573b 100644 --- a/src/gi-stubs/repository/GstRtspServer.pyi +++ b/src/gi-stubs/repository/GstRtspServer.pyi @@ -149,10 +149,11 @@ class RTSPAuth(GObject.Object): connection: Gio.TlsConnection, peer_cert: Gio.TlsCertificate, errors: Gio._TlsCertificateFlagsValueType, + /, ) -> bool: ... - def do_authenticate(self, ctx: RTSPContext) -> bool: ... - def do_check(self, ctx: RTSPContext, check: str) -> bool: ... - def do_generate_authenticate_header(self, ctx: RTSPContext) -> None: ... + def do_authenticate(self, ctx: RTSPContext, /) -> bool: ... + def do_check(self, ctx: RTSPContext, check: str, /) -> bool: ... + def do_generate_authenticate_header(self, ctx: RTSPContext, /) -> None: ... def get_default_token(self) -> RTSPToken | None: ... def get_realm(self) -> str | None: ... def get_supported_methods(self) -> GstRtsp.RTSPAuthMethod: ... @@ -286,7 +287,7 @@ class RTSPClient(GObject.Object): def attach(self, context: GLib.MainContext | None = None) -> int: ... def close(self) -> None: ... def do_adjust_error_code( - self, ctx: RTSPContext, code: GstRtsp._RTSPStatusCodeValueType + self, ctx: RTSPContext, code: GstRtsp._RTSPStatusCodeValueType, / ) -> GstRtsp.RTSPStatusCode: ... def do_adjust_play_mode( self, @@ -296,56 +297,63 @@ class RTSPClient(GObject.Object): rate: float, trickmode_interval: int, enable_rate_control: bool, + /, ) -> GstRtsp.RTSPStatusCode: ... def do_adjust_play_response( - self, context: RTSPContext + self, context: RTSPContext, / ) -> GstRtsp.RTSPStatusCode: ... - def do_announce_request(self, ctx: RTSPContext) -> None: ... - def do_check_requirements(self, ctx: RTSPContext, arr: str) -> str: ... + def do_announce_request(self, ctx: RTSPContext, /) -> None: ... + def do_check_requirements(self, ctx: RTSPContext, arr: str, /) -> str: ... def do_closed(self) -> None: ... def do_configure_client_media( - self, media: RTSPMedia, stream: RTSPStream, ctx: RTSPContext + self, media: RTSPMedia, stream: RTSPStream, ctx: RTSPContext, / ) -> bool: ... def do_configure_client_transport( - self, ctx: RTSPContext, ct: GstRtsp.RTSPTransport + self, ctx: RTSPContext, ct: GstRtsp.RTSPTransport, / ) -> bool: ... - def do_create_sdp(self, media: RTSPMedia) -> GstSdp.SDPMessage: ... - def do_describe_request(self, ctx: RTSPContext) -> None: ... - def do_get_parameter_request(self, ctx: RTSPContext) -> None: ... - def do_handle_response(self, ctx: RTSPContext) -> None: ... + def do_create_sdp(self, media: RTSPMedia, /) -> GstSdp.SDPMessage: ... + def do_describe_request(self, ctx: RTSPContext, /) -> None: ... + def do_get_parameter_request(self, ctx: RTSPContext, /) -> None: ... + def do_handle_response(self, ctx: RTSPContext, /) -> None: ... def do_handle_sdp( - self, ctx: RTSPContext, media: RTSPMedia, sdp: GstSdp.SDPMessage + self, ctx: RTSPContext, media: RTSPMedia, sdp: GstSdp.SDPMessage, / ) -> bool: ... - def do_make_path_from_uri(self, uri: GstRtsp.RTSPUrl) -> str: ... - def do_new_session(self, session: RTSPSession) -> None: ... - def do_options_request(self, ctx: RTSPContext) -> None: ... - def do_params_get(self, ctx: RTSPContext) -> GstRtsp.RTSPResult: ... - def do_params_set(self, ctx: RTSPContext) -> GstRtsp.RTSPResult: ... - def do_pause_request(self, ctx: RTSPContext) -> None: ... - def do_play_request(self, ctx: RTSPContext) -> None: ... - def do_pre_announce_request(self, ctx: RTSPContext) -> GstRtsp.RTSPStatusCode: ... - def do_pre_describe_request(self, ctx: RTSPContext) -> GstRtsp.RTSPStatusCode: ... + def do_make_path_from_uri(self, uri: GstRtsp.RTSPUrl, /) -> str: ... + def do_new_session(self, session: RTSPSession, /) -> None: ... + def do_options_request(self, ctx: RTSPContext, /) -> None: ... + def do_params_get(self, ctx: RTSPContext, /) -> GstRtsp.RTSPResult: ... + def do_params_set(self, ctx: RTSPContext, /) -> GstRtsp.RTSPResult: ... + def do_pause_request(self, ctx: RTSPContext, /) -> None: ... + def do_play_request(self, ctx: RTSPContext, /) -> None: ... + def do_pre_announce_request( + self, ctx: RTSPContext, / + ) -> GstRtsp.RTSPStatusCode: ... + def do_pre_describe_request( + self, ctx: RTSPContext, / + ) -> GstRtsp.RTSPStatusCode: ... def do_pre_get_parameter_request( - self, ctx: RTSPContext + self, ctx: RTSPContext, / ) -> GstRtsp.RTSPStatusCode: ... - def do_pre_options_request(self, ctx: RTSPContext) -> GstRtsp.RTSPStatusCode: ... - def do_pre_pause_request(self, ctx: RTSPContext) -> GstRtsp.RTSPStatusCode: ... - def do_pre_play_request(self, ctx: RTSPContext) -> GstRtsp.RTSPStatusCode: ... - def do_pre_record_request(self, ctx: RTSPContext) -> GstRtsp.RTSPStatusCode: ... + def do_pre_options_request(self, ctx: RTSPContext, /) -> GstRtsp.RTSPStatusCode: ... + def do_pre_pause_request(self, ctx: RTSPContext, /) -> GstRtsp.RTSPStatusCode: ... + def do_pre_play_request(self, ctx: RTSPContext, /) -> GstRtsp.RTSPStatusCode: ... + def do_pre_record_request(self, ctx: RTSPContext, /) -> GstRtsp.RTSPStatusCode: ... def do_pre_set_parameter_request( - self, ctx: RTSPContext + self, ctx: RTSPContext, / ) -> GstRtsp.RTSPStatusCode: ... - def do_pre_setup_request(self, ctx: RTSPContext) -> GstRtsp.RTSPStatusCode: ... - def do_pre_teardown_request(self, ctx: RTSPContext) -> GstRtsp.RTSPStatusCode: ... - def do_record_request(self, ctx: RTSPContext) -> None: ... + def do_pre_setup_request(self, ctx: RTSPContext, /) -> GstRtsp.RTSPStatusCode: ... + def do_pre_teardown_request( + self, ctx: RTSPContext, / + ) -> GstRtsp.RTSPStatusCode: ... + def do_record_request(self, ctx: RTSPContext, /) -> None: ... def do_send_message( - self, ctx: RTSPContext, response: GstRtsp.RTSPMessage + self, ctx: RTSPContext, response: GstRtsp.RTSPMessage, / ) -> None: ... - def do_set_parameter_request(self, ctx: RTSPContext) -> None: ... - def do_setup_request(self, ctx: RTSPContext) -> None: ... - def do_teardown_request(self, ctx: RTSPContext) -> None: ... + def do_set_parameter_request(self, ctx: RTSPContext, /) -> None: ... + def do_setup_request(self, ctx: RTSPContext, /) -> None: ... + def do_teardown_request(self, ctx: RTSPContext, /) -> None: ... def do_tunnel_http_response( - self, request: GstRtsp.RTSPMessage, response: GstRtsp.RTSPMessage + self, request: GstRtsp.RTSPMessage, response: GstRtsp.RTSPMessage, / ) -> None: ... def get_auth(self) -> RTSPAuth | None: ... def get_connection(self) -> GstRtsp.RTSPConnection | None: ... @@ -678,21 +686,21 @@ class RTSPMedia(GObject.Object): ) -> bool: ... def create_stream(self, payloader: Gst.Element, pad: Gst.Pad) -> RTSPStream: ... def do_convert_range( - self, range: GstRtsp.RTSPTimeRange, unit: GstRtsp._RTSPRangeUnitValueType + self, range: GstRtsp.RTSPTimeRange, unit: GstRtsp._RTSPRangeUnitValueType, / ) -> bool: ... - def do_handle_message(self, message: Gst.Message) -> bool: ... - def do_handle_sdp(self, sdp: GstSdp.SDPMessage) -> bool: ... - def do_new_state(self, state: Gst._StateValueType) -> None: ... - def do_new_stream(self, stream: RTSPStream) -> None: ... - def do_prepare(self, thread: RTSPThread | None) -> bool: ... + def do_handle_message(self, message: Gst.Message, /) -> bool: ... + def do_handle_sdp(self, sdp: GstSdp.SDPMessage, /) -> bool: ... + def do_new_state(self, state: Gst._StateValueType, /) -> None: ... + def do_new_stream(self, stream: RTSPStream, /) -> None: ... + def do_prepare(self, thread: RTSPThread | None, /) -> bool: ... def do_prepared(self) -> None: ... - def do_query_position(self, position: int) -> bool: ... - def do_query_stop(self, stop: int) -> bool: ... - def do_removed_stream(self, stream: RTSPStream) -> None: ... - def do_setup_rtpbin(self, rtpbin: Gst.Element) -> bool: ... - def do_setup_sdp(self, sdp: GstSdp.SDPMessage, info: SDPInfo) -> bool: ... + def do_query_position(self, position: int, /) -> bool: ... + def do_query_stop(self, stop: int, /) -> bool: ... + def do_removed_stream(self, stream: RTSPStream, /) -> None: ... + def do_setup_rtpbin(self, rtpbin: Gst.Element, /) -> bool: ... + def do_setup_sdp(self, sdp: GstSdp.SDPMessage, info: SDPInfo, /) -> bool: ... def do_suspend(self) -> bool: ... - def do_target_state(self, state: Gst._StateValueType) -> None: ... + def do_target_state(self, state: Gst._StateValueType, /) -> None: ... def do_unprepare(self) -> bool: ... def do_unprepared(self) -> None: ... def do_unsuspend(self) -> bool: ... @@ -957,12 +965,12 @@ class RTSPMediaFactory(GObject.Object): def add_role_from_structure(self, structure: Gst.Structure) -> None: ... def construct(self, url: GstRtsp.RTSPUrl) -> RTSPMedia | None: ... def create_element(self, url: GstRtsp.RTSPUrl) -> Gst.Element | None: ... - def do_configure(self, media: RTSPMedia) -> None: ... - def do_construct(self, url: GstRtsp.RTSPUrl) -> RTSPMedia | None: ... - def do_create_element(self, url: GstRtsp.RTSPUrl) -> Gst.Element | None: ... - def do_gen_key(self, url: GstRtsp.RTSPUrl) -> str: ... - def do_media_configure(self, media: RTSPMedia) -> None: ... - def do_media_constructed(self, media: RTSPMedia) -> None: ... + def do_configure(self, media: RTSPMedia, /) -> None: ... + def do_construct(self, url: GstRtsp.RTSPUrl, /) -> RTSPMedia | None: ... + def do_create_element(self, url: GstRtsp.RTSPUrl, /) -> Gst.Element | None: ... + def do_gen_key(self, url: GstRtsp.RTSPUrl, /) -> str: ... + def do_media_configure(self, media: RTSPMedia, /) -> None: ... + def do_media_constructed(self, media: RTSPMedia, /) -> None: ... def get_address_pool(self) -> RTSPAddressPool | None: ... def get_buffer_size(self) -> int: ... def get_clock(self) -> Gst.Clock | None: ... @@ -1177,7 +1185,7 @@ class RTSPMountPoints(GObject.Object): @property def priv(self) -> RTSPMountPointsPrivate: ... def add_factory(self, path: str, factory: RTSPMediaFactory) -> None: ... - def do_make_path(self, url: GstRtsp.RTSPUrl) -> str | None: ... + def do_make_path(self, url: GstRtsp.RTSPUrl, /) -> str | None: ... def make_path(self, url: GstRtsp.RTSPUrl) -> str | None: ... def match(self, path: str) -> tuple[RTSPMediaFactory, int]: ... @classmethod @@ -1456,7 +1464,7 @@ class RTSPOnvifMediaFactory(RTSPMediaFactory): transport_mode: _RTSPTransportModeValueType = ..., ) -> None: ... def do_create_backchannel_stream( - self, media: RTSPOnvifMedia, ctx: RTSPContext + self, media: RTSPOnvifMedia, ctx: RTSPContext, / ) -> bool: ... def do_has_backchannel_support(self) -> bool: ... def get_backchannel_bandwidth(self) -> int: ... @@ -1649,7 +1657,7 @@ class RTSPServer(GObject.Object): def create_source( self, cancellable: Gio.Cancellable | None = None ) -> GLib.Source: ... - def do_client_connected(self, client: RTSPClient) -> None: ... + def do_client_connected(self, client: RTSPClient, /) -> None: ... def get_address(self) -> str | None: ... def get_auth(self) -> RTSPAuth | None: ... def get_backlog(self) -> int: ... @@ -1860,7 +1868,7 @@ class RTSPSessionPool(GObject.Object): def create(self) -> RTSPSession | None: ... def create_watch(self) -> GLib.Source: ... def do_create_session_id(self) -> str: ... - def do_session_removed(self, session: RTSPSession) -> None: ... + def do_session_removed(self, session: RTSPSession, /) -> None: ... def filter( self, func: Callable[ @@ -2225,12 +2233,12 @@ class RTSPThreadPool(GObject.Object): def __init__(self, *, max_threads: int = ...) -> None: ... @staticmethod def cleanup() -> None: ... - def do_configure_thread(self, thread: RTSPThread, ctx: RTSPContext) -> None: ... + def do_configure_thread(self, thread: RTSPThread, ctx: RTSPContext, /) -> None: ... def do_get_thread( - self, type: RTSPThreadType, ctx: RTSPContext + self, type: RTSPThreadType, ctx: RTSPContext, / ) -> RTSPThread | None: ... - def do_thread_enter(self, thread: RTSPThread) -> None: ... - def do_thread_leave(self, thread: RTSPThread) -> None: ... + def do_thread_enter(self, thread: RTSPThread, /) -> None: ... + def do_thread_leave(self, thread: RTSPThread, /) -> None: ... def get_max_threads(self) -> int: ... def get_thread( self, type: RTSPThreadType, ctx: RTSPContext diff --git a/src/gi-stubs/repository/GstVideo.pyi b/src/gi-stubs/repository/GstVideo.pyi index 43905673..606b90f5 100644 --- a/src/gi-stubs/repository/GstVideo.pyi +++ b/src/gi-stubs/repository/GstVideo.pyi @@ -562,7 +562,7 @@ class ColorBalanceChannel(GObject.Object): def min_value(self) -> int: ... @property def max_value(self) -> int: ... - def do_value_changed(self, value: int) -> None: ... + def do_value_changed(self, value: int, /) -> None: ... class ColorBalanceChannelClass(_gi.Struct): """ @@ -860,12 +860,12 @@ class VideoAggregator(GstBase.Aggregator): name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... - def do_aggregate_frames(self, outbuffer: Gst.Buffer) -> Gst.FlowReturn: ... - def do_create_output_buffer(self, outbuffer: Gst.Buffer) -> Gst.FlowReturn: ... + def do_aggregate_frames(self, outbuffer: Gst.Buffer, /) -> Gst.FlowReturn: ... + def do_create_output_buffer(self, outbuffer: Gst.Buffer, /) -> Gst.FlowReturn: ... def do_find_best_format( - self, downstream_caps: Gst.Caps, best_info: VideoInfo + self, downstream_caps: Gst.Caps, best_info: VideoInfo, / ) -> bool: ... - def do_update_caps(self, caps: Gst.Caps) -> Gst.Caps: ... + def do_update_caps(self, caps: Gst.Caps, /) -> Gst.Caps: ... def get_execution_task_pool(self) -> Gst.TaskPool: ... class VideoAggregatorClass(_gi.Struct): @@ -979,7 +979,7 @@ class VideoAggregatorConvertPad(VideoAggregatorPad): parent: Gst.Object = ..., ) -> None: ... def do_create_conversion_info( - self, agg: VideoAggregator, conversion_info: VideoInfo + self, agg: VideoAggregator, conversion_info: VideoInfo, / ) -> None: ... def update_conversion_info(self) -> None: ... @@ -1085,22 +1085,24 @@ class VideoAggregatorPad(GstBase.AggregatorPad): parent: Gst.Object = ..., ) -> None: ... def do_clean_frame( - self, videoaggregator: VideoAggregator, prepared_frame: VideoFrame + self, videoaggregator: VideoAggregator, prepared_frame: VideoFrame, / ) -> None: ... def do_prepare_frame( self, videoaggregator: VideoAggregator, buffer: Gst.Buffer, prepared_frame: VideoFrame, + /, ) -> bool: ... def do_prepare_frame_finish( - self, videoaggregator: VideoAggregator, prepared_frame: VideoFrame + self, videoaggregator: VideoAggregator, prepared_frame: VideoFrame, / ) -> None: ... def do_prepare_frame_start( self, videoaggregator: VideoAggregator, buffer: Gst.Buffer, prepared_frame: VideoFrame, + /, ) -> None: ... def do_update_conversion_info(self) -> None: ... def get_current_buffer(self) -> Gst.Buffer: ... @@ -1595,28 +1597,28 @@ class VideoDecoder(Gst.Element): self, frame: VideoCodecFrame, params: Gst.BufferPoolAcquireParams ) -> Gst.FlowReturn: ... def do_close(self) -> bool: ... - def do_decide_allocation(self, query: Gst.Query) -> bool: ... + def do_decide_allocation(self, query: Gst.Query, /) -> bool: ... def do_drain(self) -> Gst.FlowReturn: ... def do_finish(self) -> Gst.FlowReturn: ... def do_flush(self) -> bool: ... - def do_getcaps(self, filter: Gst.Caps) -> Gst.Caps: ... - def do_handle_frame(self, frame: VideoCodecFrame) -> Gst.FlowReturn: ... - def do_handle_missing_data(self, timestamp: int, duration: int) -> bool: ... + def do_getcaps(self, filter: Gst.Caps, /) -> Gst.Caps: ... + def do_handle_frame(self, frame: VideoCodecFrame, /) -> Gst.FlowReturn: ... + def do_handle_missing_data(self, timestamp: int, duration: int, /) -> bool: ... def do_negotiate(self) -> bool: ... def do_open(self) -> bool: ... def do_parse( - self, frame: VideoCodecFrame, adapter: GstBase.Adapter, at_eos: bool + self, frame: VideoCodecFrame, adapter: GstBase.Adapter, at_eos: bool, / ) -> Gst.FlowReturn: ... - def do_propose_allocation(self, query: Gst.Query) -> bool: ... - def do_reset(self, hard: bool) -> bool: ... - def do_set_format(self, state: VideoCodecState) -> bool: ... - def do_sink_event(self, event: Gst.Event) -> bool: ... - def do_sink_query(self, query: Gst.Query) -> bool: ... - def do_src_event(self, event: Gst.Event) -> bool: ... - def do_src_query(self, query: Gst.Query) -> bool: ... + def do_propose_allocation(self, query: Gst.Query, /) -> bool: ... + def do_reset(self, hard: bool, /) -> bool: ... + def do_set_format(self, state: VideoCodecState, /) -> bool: ... + def do_sink_event(self, event: Gst.Event, /) -> bool: ... + def do_sink_query(self, query: Gst.Query, /) -> bool: ... + def do_src_event(self, event: Gst.Event, /) -> bool: ... + def do_src_query(self, query: Gst.Query, /) -> bool: ... def do_start(self) -> bool: ... def do_stop(self) -> bool: ... - def do_transform_meta(self, frame: VideoCodecFrame, meta: Gst.Meta) -> bool: ... + def do_transform_meta(self, frame: VideoCodecFrame, meta: Gst.Meta, /) -> bool: ... def drop_frame(self, frame: VideoCodecFrame) -> Gst.FlowReturn: ... def drop_subframe(self, frame: VideoCodecFrame) -> Gst.FlowReturn: ... def finish_frame(self, frame: VideoCodecFrame) -> Gst.FlowReturn: ... @@ -1868,24 +1870,24 @@ class VideoEncoder(Gst.Element, Gst.Preset): self, frame: VideoCodecFrame, size: int ) -> Gst.FlowReturn: ... def do_close(self) -> bool: ... - def do_decide_allocation(self, query: Gst.Query) -> bool: ... + def do_decide_allocation(self, query: Gst.Query, /) -> bool: ... def do_finish(self) -> Gst.FlowReturn: ... def do_flush(self) -> bool: ... - def do_getcaps(self, filter: Gst.Caps) -> Gst.Caps: ... - def do_handle_frame(self, frame: VideoCodecFrame) -> Gst.FlowReturn: ... + def do_getcaps(self, filter: Gst.Caps, /) -> Gst.Caps: ... + def do_handle_frame(self, frame: VideoCodecFrame, /) -> Gst.FlowReturn: ... def do_negotiate(self) -> bool: ... def do_open(self) -> bool: ... - def do_pre_push(self, frame: VideoCodecFrame) -> Gst.FlowReturn: ... - def do_propose_allocation(self, query: Gst.Query) -> bool: ... - def do_reset(self, hard: bool) -> bool: ... - def do_set_format(self, state: VideoCodecState) -> bool: ... - def do_sink_event(self, event: Gst.Event) -> bool: ... - def do_sink_query(self, query: Gst.Query) -> bool: ... - def do_src_event(self, event: Gst.Event) -> bool: ... - def do_src_query(self, query: Gst.Query) -> bool: ... + def do_pre_push(self, frame: VideoCodecFrame, /) -> Gst.FlowReturn: ... + def do_propose_allocation(self, query: Gst.Query, /) -> bool: ... + def do_reset(self, hard: bool, /) -> bool: ... + def do_set_format(self, state: VideoCodecState, /) -> bool: ... + def do_sink_event(self, event: Gst.Event, /) -> bool: ... + def do_sink_query(self, query: Gst.Query, /) -> bool: ... + def do_src_event(self, event: Gst.Event, /) -> bool: ... + def do_src_query(self, query: Gst.Query, /) -> bool: ... def do_start(self) -> bool: ... def do_stop(self) -> bool: ... - def do_transform_meta(self, frame: VideoCodecFrame, meta: Gst.Meta) -> bool: ... + def do_transform_meta(self, frame: VideoCodecFrame, meta: Gst.Meta, /) -> bool: ... def drop_frame(self, frame: VideoCodecFrame) -> None: ... def finish_frame(self, frame: VideoCodecFrame) -> Gst.FlowReturn: ... def finish_subframe(self, frame: VideoCodecFrame) -> Gst.FlowReturn: ... @@ -2018,11 +2020,12 @@ class VideoFilter(GstBase.BaseTransform): in_info: VideoInfo, outcaps: Gst.Caps, out_info: VideoInfo, + /, ) -> bool: ... def do_transform_frame( - self, inframe: VideoFrame, outframe: VideoFrame + self, inframe: VideoFrame, outframe: VideoFrame, / ) -> Gst.FlowReturn: ... - def do_transform_frame_ip(self, frame: VideoFrame) -> Gst.FlowReturn: ... + def do_transform_frame_ip(self, frame: VideoFrame, /) -> Gst.FlowReturn: ... class VideoFilterClass(_gi.Struct): """ @@ -2722,8 +2725,8 @@ class VideoSink(GstBase.BaseSink): def center_rect( src: VideoRectangle, dst: VideoRectangle, scaling: bool ) -> VideoRectangle: ... - def do_set_info(self, caps: Gst.Caps, info: VideoInfo) -> bool: ... - def do_show_frame(self, buf: Gst.Buffer) -> Gst.FlowReturn: ... + def do_set_info(self, caps: Gst.Caps, info: VideoInfo, /) -> bool: ... + def do_show_frame(self, buf: Gst.Buffer, /) -> Gst.FlowReturn: ... class VideoSinkClass(_gi.Struct): """ diff --git a/src/gi-stubs/repository/GstWebRTC.pyi b/src/gi-stubs/repository/GstWebRTC.pyi index bce2fd72..9b5b1a4b 100644 --- a/src/gi-stubs/repository/GstWebRTC.pyi +++ b/src/gi-stubs/repository/GstWebRTC.pyi @@ -242,45 +242,47 @@ class WebRTCICE(Gst.Object): def add_turn_server(self, uri: str) -> bool: ... def close(self, promise: Gst.Promise | None = None) -> None: ... def do_add_candidate( - self, stream: WebRTCICEStream, candidate: str, promise: Gst.Promise | None + self, stream: WebRTCICEStream, candidate: str, promise: Gst.Promise | None, / ) -> None: ... - def do_add_stream(self, session_id: int) -> WebRTCICEStream | None: ... - def do_add_turn_server(self, uri: str) -> bool: ... - def do_close(self, promise: Gst.Promise | None) -> None: ... + def do_add_stream(self, session_id: int, /) -> WebRTCICEStream | None: ... + def do_add_turn_server(self, uri: str, /) -> bool: ... + def do_close(self, promise: Gst.Promise | None, /) -> None: ... def do_find_transport( - self, stream: WebRTCICEStream, component: _WebRTCICEComponentValueType + self, stream: WebRTCICEStream, component: _WebRTCICEComponentValueType, / ) -> WebRTCICETransport | None: ... - def do_gather_candidates(self, stream: WebRTCICEStream) -> bool: ... + def do_gather_candidates(self, stream: WebRTCICEStream, /) -> bool: ... def do_get_http_proxy(self) -> str: ... def do_get_is_controller(self) -> bool: ... def do_get_local_candidates( - self, stream: WebRTCICEStream + self, stream: WebRTCICEStream, / ) -> WebRTCICECandidateStats: ... def do_get_remote_candidates( - self, stream: WebRTCICEStream + self, stream: WebRTCICEStream, / ) -> WebRTCICECandidateStats: ... def do_get_selected_pair( - self, stream: WebRTCICEStream + self, stream: WebRTCICEStream, / ) -> tuple[bool, WebRTCICECandidateStats, WebRTCICECandidateStats]: ... def do_get_stun_server(self) -> str | None: ... def do_get_turn_server(self) -> str | None: ... - def do_set_force_relay(self, force_relay: bool) -> None: ... - def do_set_http_proxy(self, uri: str) -> None: ... - def do_set_is_controller(self, controller: bool) -> None: ... + def do_set_force_relay(self, force_relay: bool, /) -> None: ... + def do_set_http_proxy(self, uri: str, /) -> None: ... + def do_set_is_controller(self, controller: bool, /) -> None: ... def do_set_local_credentials( - self, stream: WebRTCICEStream, ufrag: str, pwd: str + self, stream: WebRTCICEStream, ufrag: str, pwd: str, / ) -> bool: ... def do_set_on_ice_candidate( self, - func: Callable[[WebRTCICE, int, str, Unpack[_DataTs]], None], - *user_data: Unpack[_DataTs], + func: Callable[[WebRTCICE, int, str, Any | None], None], + user_data: int | Any | None, + notify: Callable[[Any | None], None], + /, ) -> None: ... def do_set_remote_credentials( - self, stream: WebRTCICEStream, ufrag: str, pwd: str + self, stream: WebRTCICEStream, ufrag: str, pwd: str, / ) -> bool: ... - def do_set_stun_server(self, uri: str | None) -> None: ... - def do_set_tos(self, stream: WebRTCICEStream, tos: int) -> None: ... - def do_set_turn_server(self, uri: str | None) -> None: ... + def do_set_stun_server(self, uri: str | None, /) -> None: ... + def do_set_tos(self, stream: WebRTCICEStream, tos: int, /) -> None: ... + def do_set_turn_server(self, uri: str | None, /) -> None: ... def find_transport( self, stream: WebRTCICEStream, component: _WebRTCICEComponentValueType ) -> WebRTCICETransport | None: ... @@ -493,7 +495,7 @@ class WebRTCICEStream(Gst.Object): self, *, stream_id: int = ..., name: str | None = ..., parent: Gst.Object = ... ) -> None: ... def do_find_transport( - self, component: _WebRTCICEComponentValueType + self, component: _WebRTCICEComponentValueType, / ) -> WebRTCICETransport | None: ... def do_gather_candidates(self) -> bool: ... def find_transport( diff --git a/src/gi-stubs/repository/Pango.pyi b/src/gi-stubs/repository/Pango.pyi index ecc9fdac..e49eb036 100644 --- a/src/gi-stubs/repository/Pango.pyi +++ b/src/gi-stubs/repository/Pango.pyi @@ -540,13 +540,13 @@ class Font(GObject.Object): def do_create_hb_font(self) -> HarfBuzz.font_t: ... def do_describe(self) -> FontDescription: ... def do_describe_absolute(self) -> FontDescription: ... - def do_get_coverage(self, language: Language) -> Coverage: ... + def do_get_coverage(self, language: Language, /) -> Coverage: ... def do_get_features( - self, num_features: int + self, num_features: int, / ) -> tuple[list[HarfBuzz.feature_t], int]: ... def do_get_font_map(self) -> FontMap | None: ... - def do_get_glyph_extents(self, glyph: int) -> tuple[Rectangle, Rectangle]: ... - def do_get_metrics(self, language: Language | None) -> FontMetrics: ... + def do_get_glyph_extents(self, glyph: int, /) -> tuple[Rectangle, Rectangle]: ... + def do_get_metrics(self, language: Language | None, /) -> FontMetrics: ... def get_coverage(self, language: Language) -> Coverage: ... def get_face(self) -> FontFace | None: ... def get_features( @@ -739,7 +739,7 @@ class FontFamily(GObject.Object, Gio.ListModel): def props(self) -> Props: ... @property def parent_instance(self) -> GObject.Object: ... - def do_get_face(self, name: str | None) -> FontFace | None: ... + def do_get_face(self, name: str | None, /) -> FontFace | None: ... def do_get_name(self) -> str: ... def do_is_monospace(self) -> bool: ... def do_is_variable(self) -> bool: ... @@ -808,12 +808,14 @@ class FontMap(GObject.Object, Gio.ListModel): def changed(self) -> None: ... def create_context(self) -> Context: ... def do_changed(self) -> None: ... - def do_get_family(self, name: str) -> FontFamily | None: ... + def do_get_family(self, name: str, /) -> FontFamily | None: ... def do_get_serial(self) -> int: ... def do_list_families(self) -> list[FontFamily]: ... - def do_load_font(self, context: Context, desc: FontDescription) -> Font | None: ... + def do_load_font( + self, context: Context, desc: FontDescription, / + ) -> Font | None: ... def do_load_fontset( - self, context: Context, desc: FontDescription, language: Language + self, context: Context, desc: FontDescription, language: Language, / ) -> Fontset | None: ... def get_family(self, name: str) -> FontFamily | None: ... def get_serial(self) -> int: ... @@ -918,10 +920,11 @@ class Fontset(GObject.Object): def parent_instance(self) -> GObject.Object: ... def do_foreach( self, - func: Callable[[Fontset, Font, Unpack[_DataTs]], bool], - *data: Unpack[_DataTs], + func: Callable[[Fontset, Font, Any | None], bool], + data: int | Any | None, + /, ) -> None: ... - def do_get_font(self, wc: int) -> Font: ... + def do_get_font(self, wc: int, /) -> Font: ... def do_get_language(self) -> Language: ... def do_get_metrics(self) -> FontMetrics: ... def foreach( @@ -1384,19 +1387,19 @@ class Renderer(GObject.Object): def deactivate(self) -> None: ... def do_begin(self) -> None: ... def do_draw_error_underline( - self, x: int, y: int, width: int, height: int + self, x: int, y: int, width: int, height: int, / ) -> None: ... - def do_draw_glyph(self, font: Font, glyph: int, x: float, y: float) -> None: ... + def do_draw_glyph(self, font: Font, glyph: int, x: float, y: float, /) -> None: ... def do_draw_glyph_item( - self, text: str | None, glyph_item: GlyphItem, x: int, y: int + self, text: str | None, glyph_item: GlyphItem, x: int, y: int, / ) -> None: ... def do_draw_glyphs( - self, font: Font, glyphs: GlyphString, x: int, y: int + self, font: Font, glyphs: GlyphString, x: int, y: int, / ) -> None: ... def do_draw_rectangle( - self, part: _RenderPartValueType, x: int, y: int, width: int, height: int + self, part: _RenderPartValueType, x: int, y: int, width: int, height: int, / ) -> None: ... - def do_draw_shape(self, attr: AttrShape, x: int, y: int) -> None: ... + def do_draw_shape(self, attr: AttrShape, x: int, y: int, /) -> None: ... def do_draw_trapezoid( self, part: _RenderPartValueType, @@ -1406,10 +1409,11 @@ class Renderer(GObject.Object): y2: float, x12: float, x22: float, + /, ) -> None: ... def do_end(self) -> None: ... - def do_part_changed(self, part: _RenderPartValueType) -> None: ... - def do_prepare_run(self, run: GlyphItem) -> None: ... + def do_part_changed(self, part: _RenderPartValueType, /) -> None: ... + def do_prepare_run(self, run: GlyphItem, /) -> None: ... def draw_error_underline(self, x: int, y: int, width: int, height: int) -> None: ... def draw_glyph(self, font: Font, glyph: int, x: float, y: float) -> None: ... def draw_glyph_item( diff --git a/src/gi-stubs/repository/_Gdk3.pyi b/src/gi-stubs/repository/_Gdk3.pyi index 99621ddf..dbf6848e 100644 --- a/src/gi-stubs/repository/_Gdk3.pyi +++ b/src/gi-stubs/repository/_Gdk3.pyi @@ -4058,13 +4058,14 @@ class Window(GObject.Object): def deiconify(self) -> None: ... def destroy(self) -> None: ... def destroy_notify(self) -> None: ... - def do_create_surface(self, width: int, height: int) -> cairo.Surface: ... + def do_create_surface(self, width: int, height: int, /) -> cairo.Surface: ... def do_from_embedder( self, embedder_x: float, embedder_y: float, offscreen_x: float, offscreen_y: float, + /, ) -> None: ... def do_to_embedder( self, @@ -4072,6 +4073,7 @@ class Window(GObject.Object): offscreen_y: float, embedder_x: float, embedder_y: float, + /, ) -> None: ... def enable_synchronized_configure(self) -> None: ... def end_draw_frame(self, context: DrawingContext) -> None: ... diff --git a/src/gi-stubs/repository/_Gdk4.pyi b/src/gi-stubs/repository/_Gdk4.pyi index 03853d18..db8692de 100644 --- a/src/gi-stubs/repository/_Gdk4.pyi +++ b/src/gi-stubs/repository/_Gdk4.pyi @@ -2526,7 +2526,7 @@ def content_deserialize_async( type: type[Any], io_priority: int, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2537,7 +2537,7 @@ def content_deserialize_async( io_priority: int, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[None] | None, + callback: Gio._AsyncReadyVarArgsCallback[None] | None, ) -> None: ... def content_deserialize_finish(result: Gio.AsyncResult) -> tuple[bool, Any]: ... def content_formats_parse(string: str) -> ContentFormats | None: ... @@ -2568,7 +2568,7 @@ def content_serialize_async( value: Any, io_priority: int, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2579,7 +2579,7 @@ def content_serialize_async( io_priority: int, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[None] | None, + callback: Gio._AsyncReadyVarArgsCallback[None] | None, ) -> None: ... def content_serialize_finish(result: Gio.AsyncResult) -> bool: ... def dmabuf_error_quark() -> int: ... @@ -2781,7 +2781,7 @@ class Clipboard(GObject.Object): mime_types: Sequence[str], io_priority: int, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Clipboard, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Clipboard, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2791,7 +2791,7 @@ class Clipboard(GObject.Object): io_priority: int, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Clipboard] | None, + callback: Gio._AsyncReadyVarArgsCallback[Clipboard] | None, ) -> None: ... def read_finish( self, result: Gio.AsyncResult @@ -2804,7 +2804,7 @@ class Clipboard(GObject.Object): def read_text_async( self, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Clipboard, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Clipboard, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2812,7 +2812,7 @@ class Clipboard(GObject.Object): self, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Clipboard] | None, + callback: Gio._AsyncReadyVarArgsCallback[Clipboard] | None, ) -> None: ... def read_text_finish(self, result: Gio.AsyncResult) -> str | None: ... @overload @@ -2823,7 +2823,7 @@ class Clipboard(GObject.Object): def read_texture_async( self, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Clipboard, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Clipboard, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2831,7 +2831,7 @@ class Clipboard(GObject.Object): self, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Clipboard] | None, + callback: Gio._AsyncReadyVarArgsCallback[Clipboard] | None, ) -> None: ... def read_texture_finish(self, result: Gio.AsyncResult) -> Texture | None: ... @overload @@ -2847,7 +2847,7 @@ class Clipboard(GObject.Object): type: type[Any], io_priority: int, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Clipboard, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Clipboard, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2857,7 +2857,7 @@ class Clipboard(GObject.Object): io_priority: int, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Clipboard] | None, + callback: Gio._AsyncReadyVarArgsCallback[Clipboard] | None, ) -> None: ... def read_value_finish(self, result: Gio.AsyncResult) -> Any: ... def set(self, value: Any) -> None: ... @@ -2871,7 +2871,7 @@ class Clipboard(GObject.Object): self, io_priority: int, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Clipboard, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Clipboard, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -2880,7 +2880,7 @@ class Clipboard(GObject.Object): io_priority: int, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Clipboard] | None, + callback: Gio._AsyncReadyVarArgsCallback[Clipboard] | None, ) -> None: ... def store_finish(self, result: Gio.AsyncResult) -> bool: ... @@ -3019,9 +3019,9 @@ class ContentProvider(GObject.Object): @property def parent(self) -> GObject.Object: ... def content_changed(self) -> None: ... - def do_attach_clipboard(self, clipboard: Clipboard) -> None: ... + def do_attach_clipboard(self, clipboard: Clipboard, /) -> None: ... def do_content_changed(self) -> None: ... - def do_detach_clipboard(self, clipboard: Clipboard) -> None: ... + def do_detach_clipboard(self, clipboard: Clipboard, /) -> None: ... def do_get_value(self) -> tuple[bool, Any]: ... def do_ref_formats(self) -> ContentFormats: ... def do_ref_storable_formats(self) -> ContentFormats: ... @@ -3031,13 +3031,11 @@ class ContentProvider(GObject.Object): stream: Gio.OutputStream, io_priority: int, cancellable: Gio.Cancellable | None, - callback: Callable[ - [GObject.Object | None, Gio.AsyncResult, Unpack[_DataTs]], None - ] - | None, - *user_data: Unpack[_DataTs], + callback: Gio._AsyncReadyCallback[ContentProvider, int | Any | None] | None, + user_data: int | Any | None, + /, ) -> None: ... - def do_write_mime_type_finish(self, result: Gio.AsyncResult) -> bool: ... + def do_write_mime_type_finish(self, result: Gio.AsyncResult, /) -> bool: ... def get_value(self) -> tuple[bool, Any]: ... @classmethod def new_for_bytes(cls, mime_type: str, bytes: GLib.Bytes) -> ContentProvider: ... @@ -3064,7 +3062,8 @@ class ContentProvider(GObject.Object): stream: Gio.OutputStream, io_priority: int, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[ContentProvider, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[ContentProvider, Unpack[_DataTs]] + | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -3075,7 +3074,7 @@ class ContentProvider(GObject.Object): io_priority: int, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[ContentProvider] | None, + callback: Gio._AsyncReadyVarArgsCallback[ContentProvider] | None, ) -> None: ... def write_mime_type_finish(self, result: Gio.AsyncResult) -> bool: ... @@ -3873,7 +3872,7 @@ class Drop(GObject.Object): mime_types: Sequence[str], io_priority: int, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Drop, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Drop, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -3883,7 +3882,7 @@ class Drop(GObject.Object): io_priority: int, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Drop] | None, + callback: Gio._AsyncReadyVarArgsCallback[Drop] | None, ) -> None: ... def read_finish( self, result: Gio.AsyncResult @@ -3901,7 +3900,7 @@ class Drop(GObject.Object): type: type[Any], io_priority: int, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[Drop, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[Drop, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -3911,7 +3910,7 @@ class Drop(GObject.Object): io_priority: int, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[Drop] | None, + callback: Gio._AsyncReadyVarArgsCallback[Drop] | None, ) -> None: ... def read_value_finish(self, result: Gio.AsyncResult) -> Any: ... def status( diff --git a/src/gi-stubs/repository/_Gtk3.pyi b/src/gi-stubs/repository/_Gtk3.pyi index a14d4332..2c056d57 100644 --- a/src/gi-stubs/repository/_Gtk3.pyi +++ b/src/gi-stubs/repository/_Gtk3.pyi @@ -1412,7 +1412,7 @@ class AboutDialog(Dialog): width_request: int = ..., ) -> None: ... def add_credit_section(self, section_name: str, people: Sequence[str]) -> None: ... - def do_activate_link(self, uri: str) -> bool: ... + def do_activate_link(self, uri: str, /) -> bool: ... def get_artists(self) -> list[str]: ... def get_authors(self) -> list[str]: ... def get_comments(self) -> str: ... @@ -1522,6 +1522,7 @@ class AccelGroup(GObject.Object): keyval: int, modifier: _Gdk3._ModifierTypeValueType, accel_closure: Callable[..., Any], + /, ) -> None: ... def find( self, @@ -2221,11 +2222,11 @@ class Action(GObject.Object, Buildable): def create_tool_item(self) -> Widget: ... def disconnect_accelerator(self) -> None: ... def do_activate(self) -> None: ... - def do_connect_proxy(self, proxy: Widget) -> None: ... + def do_connect_proxy(self, proxy: Widget, /) -> None: ... def do_create_menu(self) -> Widget: ... def do_create_menu_item(self) -> Widget: ... def do_create_tool_item(self) -> Widget: ... - def do_disconnect_proxy(self, proxy: Widget) -> None: ... + def do_disconnect_proxy(self, proxy: Widget, /) -> None: ... def get_accel_closure(self) -> Callable[..., Any]: ... def get_accel_path(self) -> str: ... def get_always_show_image(self) -> bool: ... @@ -2696,7 +2697,7 @@ class ActionGroup(GObject.Object, Buildable): The "activate" signals of the actions are connected to the callbacks and their accel paths are set to /group-name/action-name. """ # FIXME: Override is missing typing annotation - def do_get_action(self, action_name: str) -> Action: ... + def do_get_action(self, action_name: str, /) -> Action: ... def get_accel_group(self) -> AccelGroup: ... def get_action(self, action_name: str) -> Action: ... def get_name(self) -> str: ... @@ -3537,7 +3538,7 @@ class AppChooserButton(ComboBox, AppChooser): ) -> None: ... def append_custom_item(self, name: str, label: str, icon: Gio.Icon) -> None: ... def append_separator(self) -> None: ... - def do_custom_item_activated(self, item_name: str) -> None: ... + def do_custom_item_activated(self, item_name: str, /) -> None: ... def get_heading(self) -> str | None: ... def get_show_default_item(self) -> bool: ... def get_show_dialog_item(self) -> bool: ... @@ -4235,9 +4236,9 @@ class AppChooserWidget(Box, AppChooser): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_application_activated(self, app_info: Gio.AppInfo) -> None: ... - def do_application_selected(self, app_info: Gio.AppInfo) -> None: ... - def do_populate_popup(self, menu: Menu, app_info: Gio.AppInfo) -> None: ... + def do_application_activated(self, app_info: Gio.AppInfo, /) -> None: ... + def do_application_selected(self, app_info: Gio.AppInfo, /) -> None: ... + def do_populate_popup(self, menu: Menu, app_info: Gio.AppInfo, /) -> None: ... def get_default_text(self) -> str: ... def get_show_all(self) -> bool: ... def get_show_default(self) -> bool: ... @@ -4379,8 +4380,8 @@ class Application(Gio.Application): self, accelerator: str, action_name: str, parameter: GLib.Variant | None = None ) -> None: ... def add_window(self, window: Window) -> None: ... - def do_window_added(self, window: Window) -> None: ... - def do_window_removed(self, window: Window) -> None: ... + def do_window_added(self, window: Window, /) -> None: ... + def do_window_removed(self, window: Window, /) -> None: ... def get_accels_for_action(self, detailed_action_name: str) -> list[str]: ... def get_actions_for_accel(self, accel: str) -> list[str]: ... def get_active_window(self) -> Window | None: ... @@ -5821,7 +5822,7 @@ class Assistant(Window): def do_apply(self) -> None: ... def do_cancel(self) -> None: ... def do_close(self) -> None: ... - def do_prepare(self, page: Widget) -> None: ... + def do_prepare(self, page: Widget, /) -> None: ... def get_current_page(self) -> int: ... def get_n_pages(self) -> int: ... def get_nth_page(self, page_num: int) -> Widget | None: ... @@ -6804,7 +6805,7 @@ class Builder(GObject.Object): ], *user_data: Unpack[_DataTs], ) -> None: ... - def do_get_type_from_name(self, type_name: str) -> type[Any]: ... + def do_get_type_from_name(self, type_name: str, /) -> type[Any]: ... def expose_object(self, name: str, object: GObject.Object) -> None: ... def extend_with_template( self, widget: Widget, template_type: type[Any], buffer: str, length: int @@ -8014,7 +8015,7 @@ class CellAccessible(Accessible, Atk.Action, Atk.Component, Atk.TableCell): accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... - def do_update_cache(self, emit_signal: bool) -> None: ... + def do_update_cache(self, emit_signal: bool, /) -> None: ... class CellAccessibleClass(_gi.Struct): """ @@ -8197,16 +8198,18 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): cell_area: _Gdk3.Rectangle, flags: _CellRendererStateValueType, edit_only: bool, + /, ) -> bool: ... - def do_add(self, renderer: CellRenderer) -> None: ... + def do_add(self, renderer: CellRenderer, /) -> None: ... def do_apply_attributes( self, tree_model: TreeModel, iter: TreeIter, is_expander: bool, is_expanded: bool, + /, ) -> None: ... - def do_copy_context(self, context: CellAreaContext) -> CellAreaContext: ... + def do_copy_context(self, context: CellAreaContext, /) -> CellAreaContext: ... def do_create_context(self) -> CellAreaContext: ... def do_event( self, @@ -8215,12 +8218,14 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): event: _Gdk3.Event, cell_area: _Gdk3.Rectangle, flags: _CellRendererStateValueType, + /, ) -> int: ... - def do_focus(self, direction: _DirectionTypeValueType) -> bool: ... + def do_focus(self, direction: _DirectionTypeValueType, /) -> bool: ... def do_foreach( self, - callback: Callable[[CellRenderer, Unpack[_DataTs]], bool], - *callback_data: Unpack[_DataTs], + callback: Callable[[CellRenderer, Any | None], bool], + callback_data: int | Any | None, + /, ) -> None: ... def do_foreach_alloc( self, @@ -8229,9 +8234,10 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): cell_area: _Gdk3.Rectangle, background_area: _Gdk3.Rectangle, callback: Callable[ - [CellRenderer, _Gdk3.Rectangle, _Gdk3.Rectangle, Unpack[_DataTs]], bool + [CellRenderer, _Gdk3.Rectangle, _Gdk3.Rectangle, Any | None], bool ], - *callback_data: Unpack[_DataTs], + callback_data: int | Any | None, + /, ) -> None: ... def do_get_cell_property( self, @@ -8239,22 +8245,23 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): property_id: int, value: Any, pspec: GObject.ParamSpec, + /, ) -> None: ... def do_get_preferred_height( - self, context: CellAreaContext, widget: Widget + self, context: CellAreaContext, widget: Widget, / ) -> tuple[int, int]: ... def do_get_preferred_height_for_width( - self, context: CellAreaContext, widget: Widget, width: int + self, context: CellAreaContext, widget: Widget, width: int, / ) -> tuple[int, int]: ... def do_get_preferred_width( - self, context: CellAreaContext, widget: Widget + self, context: CellAreaContext, widget: Widget, / ) -> tuple[int, int]: ... def do_get_preferred_width_for_height( - self, context: CellAreaContext, widget: Widget, height: int + self, context: CellAreaContext, widget: Widget, height: int, / ) -> tuple[int, int]: ... def do_get_request_mode(self) -> SizeRequestMode: ... def do_is_activatable(self) -> bool: ... - def do_remove(self, renderer: CellRenderer) -> None: ... + def do_remove(self, renderer: CellRenderer, /) -> None: ... def do_render( self, context: CellAreaContext, @@ -8264,6 +8271,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): cell_area: _Gdk3.Rectangle, flags: _CellRendererStateValueType, paint_focus: bool, + /, ) -> None: ... def do_set_cell_property( self, @@ -8271,6 +8279,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): property_id: int, value: Any, pspec: GObject.ParamSpec, + /, ) -> None: ... def event( self, @@ -8618,9 +8627,9 @@ class CellAreaContext(GObject.Object): def priv(self) -> CellAreaContextPrivate: ... def __init__(self, *, area: CellArea | None = ...) -> None: ... def allocate(self, width: int, height: int) -> None: ... - def do_allocate(self, width: int, height: int) -> None: ... - def do_get_preferred_height_for_width(self, width: int) -> tuple[int, int]: ... - def do_get_preferred_width_for_height(self, height: int) -> tuple[int, int]: ... + def do_allocate(self, width: int, height: int, /) -> None: ... + def do_get_preferred_height_for_width(self, width: int, /) -> tuple[int, int]: ... + def do_get_preferred_width_for_height(self, height: int, /) -> tuple[int, int]: ... def do_reset(self) -> None: ... def get_allocation(self) -> tuple[int, int]: ... def get_area(self) -> CellArea: ... @@ -8875,26 +8884,28 @@ class CellRenderer(GObject.InitiallyUnowned): background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, flags: _CellRendererStateValueType, + /, ) -> bool: ... def do_editing_canceled(self) -> None: ... - def do_editing_started(self, editable: CellEditable, path: str) -> None: ... + def do_editing_started(self, editable: CellEditable, path: str, /) -> None: ... def do_get_aligned_area( self, widget: Widget, flags: _CellRendererStateValueType, cell_area: _Gdk3.Rectangle, + /, ) -> _Gdk3.Rectangle: ... - def do_get_preferred_height(self, widget: Widget) -> tuple[int, int]: ... + def do_get_preferred_height(self, widget: Widget, /) -> tuple[int, int]: ... def do_get_preferred_height_for_width( - self, widget: Widget, width: int + self, widget: Widget, width: int, / ) -> tuple[int, int]: ... - def do_get_preferred_width(self, widget: Widget) -> tuple[int, int]: ... + def do_get_preferred_width(self, widget: Widget, /) -> tuple[int, int]: ... def do_get_preferred_width_for_height( - self, widget: Widget, height: int + self, widget: Widget, height: int, / ) -> tuple[int, int]: ... def do_get_request_mode(self) -> SizeRequestMode: ... def do_get_size( - self, widget: Widget, cell_area: _Gdk3.Rectangle | None + self, widget: Widget, cell_area: _Gdk3.Rectangle | None, / ) -> tuple[int, int, int, int]: ... def do_render( self, @@ -8903,6 +8914,7 @@ class CellRenderer(GObject.InitiallyUnowned): background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, flags: _CellRendererStateValueType, + /, ) -> None: ... def do_start_editing( self, @@ -8912,6 +8924,7 @@ class CellRenderer(GObject.InitiallyUnowned): background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, flags: _CellRendererStateValueType, + /, ) -> CellEditable | None: ... def get_aligned_area( self, @@ -9223,13 +9236,14 @@ class CellRendererAccel(CellRendererText): yalign: float = ..., ypad: int = ..., ) -> None: ... - def do_accel_cleared(self, path_string: str) -> None: ... + def do_accel_cleared(self, path_string: str, /) -> None: ... def do_accel_edited( self, path_string: str, accel_key: int, accel_mods: _Gdk3._ModifierTypeValueType, hardware_keycode: int, + /, ) -> None: ... @classmethod def new(cls) -> CellRendererAccel: ... @@ -10557,7 +10571,7 @@ class CellRendererText(CellRenderer): yalign: float = ..., ypad: int = ..., ) -> None: ... - def do_edited(self, path: str, new_text: str) -> None: ... + def do_edited(self, path: str, new_text: str, /) -> None: ... @classmethod def new(cls) -> CellRendererText: ... def set_fixed_height_from_font(self, number_of_rows: int) -> None: ... @@ -10682,7 +10696,7 @@ class CellRendererToggle(CellRenderer): yalign: float = ..., ypad: int = ..., ) -> None: ... - def do_toggled(self, path: str) -> None: ... + def do_toggled(self, path: str, /) -> None: ... def get_activatable(self) -> bool: ... def get_active(self) -> bool: ... def get_radio(self) -> bool: ... @@ -11304,7 +11318,7 @@ class CheckButton(ToggleButton): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_draw_indicator(self, cr: cairo.Context[_SomeSurface]) -> None: ... + def do_draw_indicator(self, cr: cairo.Context[_SomeSurface], /) -> None: ... @classmethod def new(cls) -> CheckButton: ... @classmethod @@ -11613,7 +11627,7 @@ class CheckMenuItem(MenuItem): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_draw_indicator(self, cr: cairo.Context[_SomeSurface]) -> None: ... + def do_draw_indicator(self, cr: cairo.Context[_SomeSurface], /) -> None: ... def do_toggled(self) -> None: ... def get_active(self) -> bool: ... def get_draw_as_radio(self) -> bool: ... @@ -13898,7 +13912,7 @@ class ComboBox(Bin, CellEditable, CellLayout, Container): width_request: int = ..., ) -> None: ... def do_changed(self) -> None: ... - def do_format_entry_text(self, path: str) -> str: ... + def do_format_entry_text(self, path: str, /) -> str: ... def get_active(self) -> int: ... def get_active_id(self) -> str | None: ... def get_active_iter(self) -> TreeIter | None: ... # CHECK Wrapped function @@ -14672,25 +14686,26 @@ class Container(Widget): self, child: Widget, property_name: str, value: Any ) -> None: ... def child_type(self) -> type[Any]: ... - def do_add(self, widget: Widget) -> None: ... + def do_add(self, widget: Widget, /) -> None: ... def do_check_resize(self) -> None: ... def do_child_type(self) -> type[Any]: ... - def do_composite_name(self, child: Widget) -> str: ... + def do_composite_name(self, child: Widget, /) -> str: ... def do_forall( self, include_internals: bool, - callback: Callable[[Widget, Unpack[_DataTs]], None], - *callback_data: Unpack[_DataTs], + callback: Callable[[Widget, Any | None], None], + callback_data: int | Any | None, + /, ) -> None: ... def do_get_child_property( - self, child: Widget, property_id: int, value: Any, pspec: GObject.ParamSpec + self, child: Widget, property_id: int, value: Any, pspec: GObject.ParamSpec, / ) -> None: ... - def do_get_path_for_child(self, child: Widget) -> WidgetPath: ... - def do_remove(self, widget: Widget) -> None: ... + def do_get_path_for_child(self, child: Widget, /) -> WidgetPath: ... + def do_remove(self, widget: Widget, /) -> None: ... def do_set_child_property( - self, child: Widget, property_id: int, value: Any, pspec: GObject.ParamSpec + self, child: Widget, property_id: int, value: Any, pspec: GObject.ParamSpec, / ) -> None: ... - def do_set_focus_child(self, child: Widget | None) -> None: ... + def do_set_focus_child(self, child: Widget | None, /) -> None: ... def find_child_property(self, property_name: str) -> GObject.ParamSpec | None: ... def forall( self, @@ -15026,7 +15041,7 @@ class CssProvider(GObject.Object, StyleProvider): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> CssProviderPrivate: ... - def do_parsing_error(self, section: CssSection, error: GLib.Error) -> None: ... + def do_parsing_error(self, section: CssSection, error: GLib.Error, /) -> None: ... @staticmethod def get_default() -> CssProvider: ... @staticmethod @@ -15434,7 +15449,7 @@ class Dialog(Window, Container): will add "Open" and "Close" buttons to dialog. """ # FIXME: Override is missing typing annotation def do_close(self) -> None: ... - def do_response(self, response_id: int) -> None: ... + def do_response(self, response_id: int, /) -> None: ... def get_action_area(self) -> Box: ... def get_content_area(self) -> Box: ... def get_header_bar(self) -> HeaderBar: ... @@ -16217,18 +16232,20 @@ class Entry(Widget, CellEditable, Editable): def do_backspace(self) -> None: ... def do_copy_clipboard(self) -> None: ... def do_cut_clipboard(self) -> None: ... - def do_delete_from_cursor(self, type: _DeleteTypeValueType, count: int) -> None: ... - def do_get_frame_size(self, x: int, y: int, width: int, height: int) -> None: ... + def do_delete_from_cursor( + self, type: _DeleteTypeValueType, count: int, / + ) -> None: ... + def do_get_frame_size(self, x: int, y: int, width: int, height: int, /) -> None: ... def do_get_text_area_size( - self, x: int, y: int, width: int, height: int + self, x: int, y: int, width: int, height: int, / ) -> None: ... - def do_insert_at_cursor(self, str: str) -> None: ... + def do_insert_at_cursor(self, str: str, /) -> None: ... def do_insert_emoji(self) -> None: ... def do_move_cursor( - self, step: _MovementStepValueType, count: int, extend_selection: bool + self, step: _MovementStepValueType, count: int, extend_selection: bool, / ) -> None: ... def do_paste_clipboard(self) -> None: ... - def do_populate_popup(self, popup: Widget) -> None: ... + def do_populate_popup(self, popup: Widget, /) -> None: ... def do_toggle_direction(self) -> None: ... def do_toggle_overwrite(self) -> None: ... def get_activates_default(self) -> bool: ... @@ -16501,12 +16518,12 @@ class EntryBuffer(GObject.Object): def priv(self) -> EntryBufferPrivate: ... def __init__(self, *, max_length: int = ..., text: str = ...) -> None: ... def delete_text(self, position: int, n_chars: int) -> int: ... - def do_delete_text(self, position: int, n_chars: int) -> int: ... - def do_deleted_text(self, position: int, n_chars: int) -> None: ... + def do_delete_text(self, position: int, n_chars: int, /) -> int: ... + def do_deleted_text(self, position: int, n_chars: int, /) -> None: ... def do_get_length(self) -> int: ... - def do_get_text(self, n_bytes: int) -> str: ... - def do_insert_text(self, position: int, chars: str, n_chars: int) -> int: ... - def do_inserted_text(self, position: int, chars: str, n_chars: int) -> None: ... + def do_get_text(self, n_bytes: int, /) -> str: ... + def do_insert_text(self, position: int, chars: str, n_chars: int, /) -> int: ... + def do_inserted_text(self, position: int, chars: str, n_chars: int, /) -> None: ... def emit_deleted_text(self, position: int, n_chars: int) -> None: ... def emit_inserted_text(self, position: int, chars: str, n_chars: int) -> None: ... def get_bytes(self) -> int: ... @@ -16664,10 +16681,10 @@ class EntryCompletion(GObject.Object, Buildable, CellLayout): def complete(self) -> None: ... def compute_prefix(self, key: str) -> str | None: ... def delete_action(self, index_: int) -> None: ... - def do_action_activated(self, index_: int) -> None: ... - def do_cursor_on_match(self, model: TreeModel, iter: TreeIter) -> bool: ... - def do_insert_prefix(self, prefix: str) -> bool: ... - def do_match_selected(self, model: TreeModel, iter: TreeIter) -> bool: ... + def do_action_activated(self, index_: int, /) -> None: ... + def do_cursor_on_match(self, model: TreeModel, iter: TreeIter, /) -> bool: ... + def do_insert_prefix(self, prefix: str, /) -> bool: ... + def do_match_selected(self, model: TreeModel, iter: TreeIter, /) -> bool: ... def do_no_matches(self) -> None: ... def get_completion_prefix(self) -> str: ... def get_entry(self) -> Widget: ... @@ -19624,8 +19641,8 @@ class FlowBox(Container, Orientable): *user_data: Unpack[_DataTs], ) -> None: ... def do_activate_cursor_child(self) -> None: ... - def do_child_activated(self, child: FlowBoxChild) -> None: ... - def do_move_cursor(self, step: _MovementStepValueType, count: int) -> bool: ... + def do_child_activated(self, child: FlowBoxChild, /) -> None: ... + def do_move_cursor(self, step: _MovementStepValueType, count: int, /) -> bool: ... def do_select_all(self) -> None: ... def do_selected_children_changed(self) -> None: ... def do_toggle_cursor_child(self) -> None: ... @@ -22188,7 +22205,7 @@ class Frame(Bin): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_compute_child_allocation(self, allocation: _Gdk3.Rectangle) -> None: ... + def do_compute_child_allocation(self, allocation: _Gdk3.Rectangle, /) -> None: ... def get_label(self) -> str | None: ... def get_label_align(self) -> tuple[float, float]: ... def get_label_widget(self) -> Widget | None: ... @@ -22569,8 +22586,8 @@ class GLArea(Widget): width_request: int = ..., ) -> None: ... def attach_buffers(self) -> None: ... - def do_render(self, context: _Gdk3.GLContext) -> bool: ... - def do_resize(self, width: int, height: int) -> None: ... + def do_render(self, context: _Gdk3.GLContext, /) -> bool: ... + def do_resize(self, width: int, height: int, /) -> None: ... def get_auto_render(self) -> bool: ... def get_context(self) -> _Gdk3.GLContext: ... def get_error(self) -> GLib.Error | None: ... @@ -24601,7 +24618,7 @@ class HSV(Widget): width_request: int = ..., ) -> None: ... def do_changed(self) -> None: ... - def do_move(self, type: _DirectionTypeValueType) -> None: ... + def do_move(self, type: _DirectionTypeValueType, /) -> None: ... def get_color(self) -> tuple[float, float, float]: ... def get_metrics(self) -> tuple[int, int]: ... def is_adjusting(self) -> bool: ... @@ -25672,8 +25689,8 @@ class HandleBox(Bin): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_child_attached(self, child: Widget) -> None: ... - def do_child_detached(self, child: Widget) -> None: ... + def do_child_attached(self, child: Widget, /) -> None: ... + def do_child_detached(self, child: Widget, /) -> None: ... def get_child_detached(self) -> bool: ... def get_handle_position(self) -> PositionType: ... def get_shadow_type(self) -> ShadowType: ... @@ -26154,9 +26171,9 @@ class IMContext(GObject.Object): input_purpose: _InputPurposeValueType = ..., ) -> None: ... def delete_surrounding(self, offset: int, n_chars: int) -> bool: ... - def do_commit(self, str: str) -> None: ... - def do_delete_surrounding(self, offset: int, n_chars: int) -> bool: ... - def do_filter_keypress(self, event: _Gdk3.EventKey) -> bool: ... + def do_commit(self, str: str, /) -> None: ... + def do_delete_surrounding(self, offset: int, n_chars: int, /) -> bool: ... + def do_filter_keypress(self, event: _Gdk3.EventKey, /) -> bool: ... def do_focus_in(self) -> None: ... def do_focus_out(self) -> None: ... def do_get_preedit_string(self) -> tuple[str, Pango.AttrList, int]: ... @@ -26166,10 +26183,10 @@ class IMContext(GObject.Object): def do_preedit_start(self) -> None: ... def do_reset(self) -> None: ... def do_retrieve_surrounding(self) -> bool: ... - def do_set_client_window(self, window: _Gdk3.Window | None) -> None: ... - def do_set_cursor_location(self, area: _Gdk3.Rectangle) -> None: ... - def do_set_surrounding(self, text: str, len: int, cursor_index: int) -> None: ... - def do_set_use_preedit(self, use_preedit: bool) -> None: ... + def do_set_client_window(self, window: _Gdk3.Window | None, /) -> None: ... + def do_set_cursor_location(self, area: _Gdk3.Rectangle, /) -> None: ... + def do_set_surrounding(self, text: str, len: int, cursor_index: int, /) -> None: ... + def do_set_use_preedit(self, use_preedit: bool, /) -> None: ... def filter_keypress(self, event: _Gdk3.EventKey) -> bool: ... def focus_in(self) -> None: ... def focus_out(self) -> None: ... @@ -26424,7 +26441,7 @@ class IconInfo(GObject.Object): def load_icon_async( self, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[IconInfo, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[IconInfo, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -26432,7 +26449,7 @@ class IconInfo(GObject.Object): self, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[IconInfo] | None, + callback: Gio._AsyncReadyVarArgsCallback[IconInfo] | None, ) -> None: ... def load_icon_finish(self, res: Gio.AsyncResult) -> GdkPixbuf.Pixbuf: ... # override @@ -26463,7 +26480,7 @@ class IconInfo(GObject.Object): warning_color: _Gdk3.RGBA | None, error_color: _Gdk3.RGBA | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[IconInfo, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[IconInfo, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -26475,7 +26492,7 @@ class IconInfo(GObject.Object): error_color: _Gdk3.RGBA | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[IconInfo] | None, + callback: Gio._AsyncReadyVarArgsCallback[IconInfo] | None, ) -> None: ... def load_symbolic_finish( self, res: Gio.AsyncResult @@ -26492,7 +26509,7 @@ class IconInfo(GObject.Object): self, context: StyleContext, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[IconInfo, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[IconInfo, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -26501,7 +26518,7 @@ class IconInfo(GObject.Object): context: StyleContext, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[IconInfo] | None, + callback: Gio._AsyncReadyVarArgsCallback[IconInfo] | None, ) -> None: ... def load_symbolic_for_context_finish( self, res: Gio.AsyncResult @@ -27032,8 +27049,8 @@ class IconView(Container, CellLayout, Scrollable): ) -> tuple[int, int]: ... def create_drag_icon(self, path: TreePath) -> cairo.Surface: ... def do_activate_cursor_item(self) -> bool: ... - def do_item_activated(self, path: TreePath) -> None: ... - def do_move_cursor(self, step: _MovementStepValueType, count: int) -> bool: ... + def do_item_activated(self, path: TreePath, /) -> None: ... + def do_move_cursor(self, step: _MovementStepValueType, count: int, /) -> bool: ... def do_select_all(self) -> None: ... def do_select_cursor_item(self) -> None: ... def do_selection_changed(self) -> None: ... @@ -28451,7 +28468,7 @@ class InfoBar(Box): def add_action_widget(self, child: Widget, response_id: int) -> None: ... def add_button(self, button_text: str, response_id: int) -> Button: ... def do_close(self) -> None: ... - def do_response(self, response_id: int) -> None: ... + def do_response(self, response_id: int, /) -> None: ... def get_action_area(self) -> Box: ... def get_content_area(self) -> Box: ... def get_message_type(self) -> MessageType: ... @@ -29060,12 +29077,12 @@ class Label(Misc): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_activate_link(self, uri: str) -> bool: ... + def do_activate_link(self, uri: str, /) -> bool: ... def do_copy_clipboard(self) -> None: ... def do_move_cursor( - self, step: _MovementStepValueType, count: int, extend_selection: bool + self, step: _MovementStepValueType, count: int, extend_selection: bool, / ) -> None: ... - def do_populate_popup(self, menu: Menu) -> None: ... + def do_populate_popup(self, menu: Menu, /) -> None: ... def get_angle(self) -> float: ... def get_attributes(self) -> Pango.AttrList | None: ... def get_current_uri(self) -> str: ... @@ -29800,7 +29817,7 @@ class LevelBar(Widget, Orientable): width_request: int = ..., ) -> None: ... def add_offset_value(self, name: str, value: float) -> None: ... - def do_offset_changed(self, name: str) -> None: ... + def do_offset_changed(self, name: str, /) -> None: ... def get_inverted(self) -> bool: ... def get_max_value(self) -> float: ... def get_min_value(self) -> float: ... @@ -30636,9 +30653,9 @@ class ListBox(Container): *user_data: Unpack[_DataTs], ) -> None: ... def do_activate_cursor_row(self) -> None: ... - def do_move_cursor(self, step: _MovementStepValueType, count: int) -> None: ... - def do_row_activated(self, row: ListBoxRow) -> None: ... - def do_row_selected(self, row: ListBoxRow) -> None: ... + def do_move_cursor(self, step: _MovementStepValueType, count: int, /) -> None: ... + def do_row_activated(self, row: ListBoxRow, /) -> None: ... + def do_row_selected(self, row: ListBoxRow, /) -> None: ... def do_select_all(self) -> None: ... def do_selected_rows_changed(self) -> None: ... def do_toggle_cursor_row(self) -> None: ... @@ -33310,9 +33327,9 @@ class MenuItem(Bin, Actionable, Activatable): def do_deselect(self) -> None: ... def do_get_label(self) -> str: ... def do_select(self) -> None: ... - def do_set_label(self, label: str) -> None: ... - def do_toggle_size_allocate(self, allocation: int) -> None: ... - def do_toggle_size_request(self, requisition: int) -> int: ... + def do_set_label(self, label: str, /) -> None: ... + def do_toggle_size_allocate(self, allocation: int, /) -> None: ... + def do_toggle_size_request(self, requisition: int, /) -> int: ... def get_accel_path(self) -> str | None: ... def get_label(self) -> str: ... def get_reserve_indicator(self) -> bool: ... @@ -33737,14 +33754,14 @@ class MenuShell(Container): def cancel(self) -> None: ... def deactivate(self) -> None: ... def deselect(self) -> None: ... - def do_activate_current(self, force_hide: bool) -> None: ... + def do_activate_current(self, force_hide: bool, /) -> None: ... def do_cancel(self) -> None: ... def do_deactivate(self) -> None: ... def do_get_popup_delay(self) -> int: ... - def do_insert(self, child: Widget, position: int) -> None: ... - def do_move_current(self, direction: _MenuDirectionTypeValueType) -> None: ... - def do_move_selected(self, distance: int) -> bool: ... - def do_select_item(self, menu_item: Widget) -> None: ... + def do_insert(self, child: Widget, position: int, /) -> None: ... + def do_move_current(self, direction: _MenuDirectionTypeValueType, /) -> None: ... + def do_move_selected(self, distance: int, /) -> bool: ... + def do_select_item(self, menu_item: Widget, /) -> None: ... def do_selection_done(self) -> None: ... def get_parent_shell(self) -> Widget: ... def get_selected_item(self) -> Widget: ... @@ -35332,7 +35349,7 @@ class NativeDialog(GObject.Object): ) -> None: ... def destroy(self) -> None: ... def do_hide(self) -> None: ... - def do_response(self, response_id: int) -> None: ... + def do_response(self, response_id: int, /) -> None: ... def do_show(self) -> None: ... def get_modal(self) -> bool: ... def get_title(self) -> str | None: ... @@ -35646,20 +35663,20 @@ class Notebook(Container): menu_label: Widget | None = None, ) -> int: ... def detach_tab(self, child: Widget) -> None: ... - def do_change_current_page(self, offset: int) -> bool: ... - def do_focus_tab(self, type: _NotebookTabValueType) -> bool: ... + def do_change_current_page(self, offset: int, /) -> bool: ... + def do_focus_tab(self, type: _NotebookTabValueType, /) -> bool: ... def do_insert_page( - self, child: Widget, tab_label: Widget, menu_label: Widget, position: int + self, child: Widget, tab_label: Widget, menu_label: Widget, position: int, / ) -> int: ... - def do_move_focus_out(self, direction: _DirectionTypeValueType) -> None: ... - def do_page_added(self, child: Widget, page_num: int) -> None: ... - def do_page_removed(self, child: Widget, page_num: int) -> None: ... - def do_page_reordered(self, child: Widget, page_num: int) -> None: ... + def do_move_focus_out(self, direction: _DirectionTypeValueType, /) -> None: ... + def do_page_added(self, child: Widget, page_num: int, /) -> None: ... + def do_page_removed(self, child: Widget, page_num: int, /) -> None: ... + def do_page_reordered(self, child: Widget, page_num: int, /) -> None: ... def do_reorder_tab( - self, direction: _DirectionTypeValueType, move_to_last: bool + self, direction: _DirectionTypeValueType, move_to_last: bool, / ) -> bool: ... - def do_select_page(self, move_focus: bool) -> bool: ... - def do_switch_page(self, page: Widget, page_num: int) -> None: ... + def do_select_page(self, move_focus: bool, /) -> bool: ... + def do_switch_page(self, page: Widget, page_num: int, /) -> None: ... def get_action_widget(self, pack_type: _PackTypeValueType) -> Widget | None: ... def get_current_page(self) -> int: ... def get_group_name(self) -> str | None: ... @@ -36658,7 +36675,7 @@ class Overlay(Bin): ) -> None: ... def add_overlay(self, widget: Widget) -> None: ... def do_get_child_position( - self, widget: Widget, allocation: _Gdk3.Rectangle + self, widget: Widget, allocation: _Gdk3.Rectangle, / ) -> bool: ... def get_overlay_pass_through(self, widget: Widget) -> bool: ... @classmethod @@ -37094,9 +37111,9 @@ class Paned(Container, Orientable): def add2(self, child: Widget) -> None: ... def do_accept_position(self) -> bool: ... def do_cancel_position(self) -> bool: ... - def do_cycle_child_focus(self, reverse: bool) -> bool: ... - def do_cycle_handle_focus(self, reverse: bool) -> bool: ... - def do_move_handle(self, scroll: _ScrollTypeValueType) -> bool: ... + def do_cycle_child_focus(self, reverse: bool, /) -> bool: ... + def do_cycle_handle_focus(self, reverse: bool, /) -> bool: ... + def do_move_handle(self, scroll: _ScrollTypeValueType, /) -> bool: ... def do_toggle_handle_focus(self) -> bool: ... def get_child1(self) -> Widget | None: ... def get_child2(self) -> Widget | None: ... @@ -39054,21 +39071,21 @@ class PrintOperation(GObject.Object, PrintOperationPreview): use_full_page: bool = ..., ) -> None: ... def cancel(self) -> None: ... - def do_begin_print(self, context: PrintContext) -> None: ... - def do_custom_widget_apply(self, widget: Widget) -> None: ... - def do_done(self, result: _PrintOperationResultValueType) -> None: ... - def do_draw_page(self, context: PrintContext, page_nr: int) -> None: ... - def do_end_print(self, context: PrintContext) -> None: ... - def do_paginate(self, context: PrintContext) -> bool: ... + def do_begin_print(self, context: PrintContext, /) -> None: ... + def do_custom_widget_apply(self, widget: Widget, /) -> None: ... + def do_done(self, result: _PrintOperationResultValueType, /) -> None: ... + def do_draw_page(self, context: PrintContext, page_nr: int, /) -> None: ... + def do_end_print(self, context: PrintContext, /) -> None: ... + def do_paginate(self, context: PrintContext, /) -> bool: ... def do_preview( - self, preview: PrintOperationPreview, context: PrintContext, parent: Window + self, preview: PrintOperationPreview, context: PrintContext, parent: Window, / ) -> bool: ... def do_request_page_setup( - self, context: PrintContext, page_nr: int, setup: PageSetup + self, context: PrintContext, page_nr: int, setup: PageSetup, / ) -> None: ... def do_status_changed(self) -> None: ... def do_update_custom_widget( - self, widget: Widget, setup: PageSetup, settings: PrintSettings + self, widget: Widget, setup: PageSetup, settings: PrintSettings, / ) -> None: ... def draw_page_finish(self) -> None: ... def get_default_page_setup(self) -> PageSetup: ... @@ -39795,7 +39812,7 @@ class RadioAction(ToggleAction): visible_overflown: bool = ..., visible_vertical: bool = ..., ) -> None: ... - def do_changed(self, current: RadioAction) -> None: ... + def do_changed(self, current: RadioAction, /) -> None: ... def get_current_value(self) -> int: ... def get_group(self) -> list[RadioAction]: ... def join_group(self, group_source: RadioAction | None = None) -> None: ... @@ -41367,15 +41384,15 @@ class Range(Widget, Orientable): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_adjust_bounds(self, new_value: float) -> None: ... + def do_adjust_bounds(self, new_value: float, /) -> None: ... def do_change_value( - self, scroll: _ScrollTypeValueType, new_value: float + self, scroll: _ScrollTypeValueType, new_value: float, / ) -> bool: ... - def do_get_range_border(self, border_: Border) -> None: ... + def do_get_range_border(self, border_: Border, /) -> None: ... def do_get_range_size_request( - self, orientation: _OrientationValueType, minimum: int, natural: int + self, orientation: _OrientationValueType, minimum: int, natural: int, / ) -> None: ... - def do_move_slider(self, scroll: _ScrollTypeValueType) -> None: ... + def do_move_slider(self, scroll: _ScrollTypeValueType, /) -> None: ... def do_value_changed(self) -> None: ... def get_adjustment(self) -> Adjustment: ... def get_fill_level(self) -> float: ... @@ -41631,8 +41648,8 @@ class RcStyle(GObject.Object): @property def engine_specified(self) -> int: ... def copy(self) -> RcStyle: ... - def do_merge(self, src: RcStyle) -> None: ... - def do_parse(self, settings: Settings, scanner: GLib.Scanner) -> int: ... + def do_merge(self, src: RcStyle, /) -> None: ... + def do_parse(self, settings: Settings, scanner: GLib.Scanner, /) -> int: ... @classmethod def new(cls) -> RcStyle: ... @@ -43802,7 +43819,7 @@ class Scale(Range): ) -> None: ... def clear_marks(self) -> None: ... def do_draw_value(self) -> None: ... - def do_format_value(self, value: float) -> str: ... + def do_format_value(self, value: float, /) -> str: ... def do_get_layout_offsets(self) -> tuple[int, int]: ... def get_digits(self) -> int: ... def get_draw_value(self) -> bool: ... @@ -44252,7 +44269,7 @@ class ScaleButton(Button, Orientable): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_value_changed(self, value: float) -> None: ... + def do_value_changed(self, value: float, /) -> None: ... def get_adjustment(self) -> Adjustment: ... def get_minus_button(self) -> Button: ... def get_plus_button(self) -> Button: ... @@ -45034,9 +45051,9 @@ class ScrolledWindow(Bin): width_request: int = ..., ) -> None: ... def add_with_viewport(self, child: Widget) -> None: ... - def do_move_focus_out(self, direction: _DirectionTypeValueType) -> None: ... + def do_move_focus_out(self, direction: _DirectionTypeValueType, /) -> None: ... def do_scroll_child( - self, scroll: _ScrollTypeValueType, horizontal: bool + self, scroll: _ScrollTypeValueType, horizontal: bool, / ) -> bool: ... def get_capture_button_press(self) -> bool: ... def get_hadjustment(self) -> Adjustment: ... @@ -49500,8 +49517,8 @@ class SpinButton(Entry, Orientable): def configure( self, adjustment: Adjustment | None, climb_rate: float, digits: int ) -> None: ... - def do_change_value(self, scroll: _ScrollTypeValueType) -> None: ... - def do_input(self, new_value: float) -> int: ... + def do_change_value(self, scroll: _ScrollTypeValueType, /) -> None: ... + def do_input(self, new_value: float, /) -> int: ... def do_output(self) -> int: ... def do_value_changed(self) -> None: ... def do_wrapped(self) -> None: ... @@ -51088,14 +51105,14 @@ class StatusIcon(GObject.Object): visible: bool = ..., ) -> None: ... def do_activate(self) -> None: ... - def do_button_press_event(self, event: _Gdk3.EventButton) -> bool: ... - def do_button_release_event(self, event: _Gdk3.EventButton) -> bool: ... - def do_popup_menu(self, button: int, activate_time: int) -> None: ... + def do_button_press_event(self, event: _Gdk3.EventButton, /) -> bool: ... + def do_button_release_event(self, event: _Gdk3.EventButton, /) -> bool: ... + def do_popup_menu(self, button: int, activate_time: int, /) -> None: ... def do_query_tooltip( - self, x: int, y: int, keyboard_mode: bool, tooltip: Tooltip + self, x: int, y: int, keyboard_mode: bool, tooltip: Tooltip, / ) -> bool: ... - def do_scroll_event(self, event: _Gdk3.EventScroll) -> bool: ... - def do_size_changed(self, size: int) -> bool: ... + def do_scroll_event(self, event: _Gdk3.EventScroll, /) -> bool: ... + def do_size_changed(self, size: int, /) -> bool: ... def get_geometry( self, ) -> tuple[bool, _Gdk3.Screen, _Gdk3.Rectangle, Orientation]: ... @@ -51424,8 +51441,8 @@ class Statusbar(Box): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_text_popped(self, context_id: int, text: str) -> None: ... - def do_text_pushed(self, context_id: int, text: str) -> None: ... + def do_text_popped(self, context_id: int, text: str, /) -> None: ... + def do_text_pushed(self, context_id: int, text: str, /) -> None: ... def get_context_id(self, context_description: str) -> int: ... def get_message_area(self) -> Box: ... @classmethod @@ -51666,7 +51683,7 @@ class Style(GObject.Object): ) -> None: ... def copy(self) -> Style: ... def detach(self) -> None: ... - def do_copy(self, src: Style) -> None: ... + def do_copy(self, src: Style, /) -> None: ... def do_draw_arrow( self, cr: cairo.Context[_SomeSurface], @@ -51680,6 +51697,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_box( self, @@ -51692,6 +51710,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_box_gap( self, @@ -51707,6 +51726,7 @@ class Style(GObject.Object): gap_side: _PositionTypeValueType, gap_x: int, gap_width: int, + /, ) -> None: ... def do_draw_check( self, @@ -51719,6 +51739,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_diamond( self, @@ -51731,6 +51752,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_expander( self, @@ -51741,6 +51763,7 @@ class Style(GObject.Object): x: int, y: int, expander_style: _ExpanderStyleValueType, + /, ) -> None: ... def do_draw_extension( self, @@ -51754,6 +51777,7 @@ class Style(GObject.Object): width: int, height: int, gap_side: _PositionTypeValueType, + /, ) -> None: ... def do_draw_flat_box( self, @@ -51766,6 +51790,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_focus( self, @@ -51777,6 +51802,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_handle( self, @@ -51790,6 +51816,7 @@ class Style(GObject.Object): width: int, height: int, orientation: _OrientationValueType, + /, ) -> None: ... def do_draw_hline( self, @@ -51800,6 +51827,7 @@ class Style(GObject.Object): x1: int, x2: int, y: int, + /, ) -> None: ... def do_draw_layout( self, @@ -51811,6 +51839,7 @@ class Style(GObject.Object): x: int, y: int, layout: Pango.Layout, + /, ) -> None: ... def do_draw_option( self, @@ -51823,6 +51852,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_resize_grip( self, @@ -51835,6 +51865,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_shadow( self, @@ -51847,6 +51878,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_shadow_gap( self, @@ -51862,6 +51894,7 @@ class Style(GObject.Object): gap_side: _PositionTypeValueType, gap_x: int, gap_width: int, + /, ) -> None: ... def do_draw_slider( self, @@ -51875,6 +51908,7 @@ class Style(GObject.Object): width: int, height: int, orientation: _OrientationValueType, + /, ) -> None: ... def do_draw_spinner( self, @@ -51887,6 +51921,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_tab( self, @@ -51899,6 +51934,7 @@ class Style(GObject.Object): y: int, width: int, height: int, + /, ) -> None: ... def do_draw_vline( self, @@ -51909,8 +51945,9 @@ class Style(GObject.Object): y1_: int, y2_: int, x: int, + /, ) -> None: ... - def do_init_from_rc(self, rc_style: RcStyle) -> None: ... + def do_init_from_rc(self, rc_style: RcStyle, /) -> None: ... def do_realize(self) -> None: ... def do_render_icon( self, @@ -51920,9 +51957,10 @@ class Style(GObject.Object): size: int, widget: Widget | None, detail: str | None, + /, ) -> GdkPixbuf.Pixbuf: ... def do_set_background( - self, window: _Gdk3.Window, state_type: _StateTypeValueType + self, window: _Gdk3.Window, state_type: _StateTypeValueType, / ) -> None: ... def do_unrealize(self) -> None: ... def get_style_property(self, widget_type: type[Any], property_name: str) -> Any: ... @@ -52806,7 +52844,7 @@ class Switch(Widget, Actionable, Activatable): width_request: int = ..., ) -> None: ... def do_activate(self) -> None: ... - def do_state_set(self, state: bool) -> bool: ... + def do_state_set(self, state: bool, /) -> bool: ... def get_active(self) -> bool: ... def get_state(self) -> bool: ... @classmethod @@ -53818,23 +53856,25 @@ class TextBuffer(GObject.Object): def deserialize_set_can_create_tags( self, format: _Gdk3.Atom, can_create_tags: bool ) -> None: ... - def do_apply_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ... + def do_apply_tag(self, tag: TextTag, start: TextIter, end: TextIter, /) -> None: ... def do_begin_user_action(self) -> None: ... def do_changed(self) -> None: ... - def do_delete_range(self, start: TextIter, end: TextIter) -> None: ... + def do_delete_range(self, start: TextIter, end: TextIter, /) -> None: ... def do_end_user_action(self) -> None: ... def do_insert_child_anchor( - self, iter: TextIter, anchor: TextChildAnchor + self, iter: TextIter, anchor: TextChildAnchor, / ) -> None: ... - def do_insert_pixbuf(self, iter: TextIter, pixbuf: GdkPixbuf.Pixbuf) -> None: ... + def do_insert_pixbuf(self, iter: TextIter, pixbuf: GdkPixbuf.Pixbuf, /) -> None: ... def do_insert_text( - self, pos: TextIter, new_text: str, new_text_length: int + self, pos: TextIter, new_text: str, new_text_length: int, / ) -> None: ... - def do_mark_deleted(self, mark: TextMark) -> None: ... - def do_mark_set(self, location: TextIter, mark: TextMark) -> None: ... + def do_mark_deleted(self, mark: TextMark, /) -> None: ... + def do_mark_set(self, location: TextIter, mark: TextMark, /) -> None: ... def do_modified_changed(self) -> None: ... - def do_paste_done(self, clipboard: Clipboard) -> None: ... - def do_remove_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ... + def do_paste_done(self, clipboard: Clipboard, /) -> None: ... + def do_remove_tag( + self, tag: TextTag, start: TextIter, end: TextIter, / + ) -> None: ... def end_user_action(self) -> None: ... def get_bounds(self) -> tuple[TextIter, TextIter]: ... def get_char_count(self) -> int: ... @@ -54713,7 +54753,7 @@ class TextTag(GObject.Object): ) -> None: ... def changed(self, size_changed: bool) -> None: ... def do_event( - self, event_object: GObject.Object, event: _Gdk3.Event, iter: TextIter + self, event_object: GObject.Object, event: _Gdk3.Event, iter: TextIter, / ) -> bool: ... def event( self, event_object: GObject.Object, event: _Gdk3.Event, iter: TextIter @@ -54764,9 +54804,9 @@ class TextTagTable(GObject.Object, Buildable): @property def priv(self) -> TextTagTablePrivate: ... def add(self, tag: TextTag) -> bool: ... - def do_tag_added(self, tag: TextTag) -> None: ... - def do_tag_changed(self, tag: TextTag, size_changed: bool) -> None: ... - def do_tag_removed(self, tag: TextTag) -> None: ... + def do_tag_added(self, tag: TextTag, /) -> None: ... + def do_tag_changed(self, tag: TextTag, size_changed: bool, /) -> None: ... + def do_tag_removed(self, tag: TextTag, /) -> None: ... def foreach( self, func: Callable[[TextTag, Unpack[_DataTs]], None], *data: Unpack[_DataTs] ) -> None: ... @@ -55185,9 +55225,11 @@ class TextView(Container, Scrollable): def do_backspace(self) -> None: ... def do_copy_clipboard(self) -> None: ... def do_cut_clipboard(self) -> None: ... - def do_delete_from_cursor(self, type: _DeleteTypeValueType, count: int) -> None: ... + def do_delete_from_cursor( + self, type: _DeleteTypeValueType, count: int, / + ) -> None: ... def do_draw_layer( - self, layer: _TextViewLayerValueType, cr: cairo.Context[_SomeSurface] + self, layer: _TextViewLayerValueType, cr: cairo.Context[_SomeSurface], / ) -> None: ... def do_extend_selection( self, @@ -55195,14 +55237,15 @@ class TextView(Container, Scrollable): location: TextIter, start: TextIter, end: TextIter, + /, ) -> bool: ... - def do_insert_at_cursor(self, str: str) -> None: ... + def do_insert_at_cursor(self, str: str, /) -> None: ... def do_insert_emoji(self) -> None: ... def do_move_cursor( - self, step: _MovementStepValueType, count: int, extend_selection: bool + self, step: _MovementStepValueType, count: int, extend_selection: bool, / ) -> None: ... def do_paste_clipboard(self) -> None: ... - def do_populate_popup(self, popup: Widget) -> None: ... + def do_populate_popup(self, popup: Widget, /) -> None: ... def do_set_anchor(self) -> None: ... def do_toggle_overwrite(self) -> None: ... def forward_display_line(self, iter: TextIter) -> bool: ... @@ -55506,6 +55549,7 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, + /, ) -> None: ... def do_render_arrow( self, @@ -55514,6 +55558,7 @@ class ThemingEngine(GObject.Object): x: float, y: float, size: float, + /, ) -> None: ... def do_render_background( self, @@ -55522,6 +55567,7 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, + /, ) -> None: ... def do_render_check( self, @@ -55530,6 +55576,7 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, + /, ) -> None: ... def do_render_expander( self, @@ -55538,6 +55585,7 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, + /, ) -> None: ... def do_render_extension( self, @@ -55547,6 +55595,7 @@ class ThemingEngine(GObject.Object): width: float, height: float, gap_side: _PositionTypeValueType, + /, ) -> None: ... def do_render_focus( self, @@ -55555,6 +55604,7 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, + /, ) -> None: ... def do_render_frame( self, @@ -55563,6 +55613,7 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, + /, ) -> None: ... def do_render_frame_gap( self, @@ -55574,6 +55625,7 @@ class ThemingEngine(GObject.Object): gap_side: _PositionTypeValueType, xy0_gap: float, xy1_gap: float, + /, ) -> None: ... def do_render_handle( self, @@ -55582,6 +55634,7 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, + /, ) -> None: ... def do_render_icon( self, @@ -55589,6 +55642,7 @@ class ThemingEngine(GObject.Object): pixbuf: GdkPixbuf.Pixbuf, x: float, y: float, + /, ) -> None: ... def do_render_icon_surface( self, @@ -55596,9 +55650,15 @@ class ThemingEngine(GObject.Object): surface: cairo.Surface, x: float, y: float, + /, ) -> None: ... def do_render_layout( - self, cr: cairo.Context[_SomeSurface], x: float, y: float, layout: Pango.Layout + self, + cr: cairo.Context[_SomeSurface], + x: float, + y: float, + layout: Pango.Layout, + /, ) -> None: ... def do_render_line( self, @@ -55607,6 +55667,7 @@ class ThemingEngine(GObject.Object): y0: float, x1: float, y1: float, + /, ) -> None: ... def do_render_option( self, @@ -55615,6 +55676,7 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, + /, ) -> None: ... def do_render_slider( self, @@ -55624,6 +55686,7 @@ class ThemingEngine(GObject.Object): width: float, height: float, orientation: _OrientationValueType, + /, ) -> None: ... def get_background_color(self, state: _StateFlagsValueType) -> _Gdk3.RGBA: ... def get_border(self, state: _StateFlagsValueType) -> Border: ... @@ -58237,9 +58300,9 @@ class Toolbar(Container, Orientable, ToolShell): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_orientation_changed(self, orientation: _OrientationValueType) -> None: ... - def do_popup_context_menu(self, x: int, y: int, button_number: int) -> bool: ... - def do_style_changed(self, style: _ToolbarStyleValueType) -> None: ... + def do_orientation_changed(self, orientation: _OrientationValueType, /) -> None: ... + def do_popup_context_menu(self, x: int, y: int, button_number: int, /) -> bool: ... + def do_style_changed(self, style: _ToolbarStyleValueType, /) -> None: ... def get_drop_index(self, x: int, y: int) -> int: ... def get_icon_size(self) -> IconSize: ... def get_item_index(self, item: ToolItem) -> int: ... @@ -58610,9 +58673,9 @@ class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): def convert_iter_to_child_iter(self, filter_iter: TreeIter) -> TreeIter: ... def convert_path_to_child_path(self, filter_path: TreePath) -> TreePath | None: ... def do_modify( - self, child_model: TreeModel, iter: TreeIter, value: Any, column: int + self, child_model: TreeModel, iter: TreeIter, value: Any, column: int, / ) -> None: ... - def do_visible(self, child_model: TreeModel, iter: TreeIter) -> bool: ... + def do_visible(self, child_model: TreeModel, iter: TreeIter, /) -> bool: ... def get_model(self) -> TreeModel: ... def refilter(self) -> None: ... def set_modify_func( @@ -59480,18 +59543,18 @@ class TreeView(Container, Scrollable): def do_columns_changed(self) -> None: ... def do_cursor_changed(self) -> None: ... def do_expand_collapse_cursor_row( - self, logical: bool, expand: bool, open_all: bool + self, logical: bool, expand: bool, open_all: bool, / ) -> bool: ... - def do_move_cursor(self, step: _MovementStepValueType, count: int) -> bool: ... - def do_row_activated(self, path: TreePath, column: TreeViewColumn) -> None: ... - def do_row_collapsed(self, iter: TreeIter, path: TreePath) -> None: ... - def do_row_expanded(self, iter: TreeIter, path: TreePath) -> None: ... + def do_move_cursor(self, step: _MovementStepValueType, count: int, /) -> bool: ... + def do_row_activated(self, path: TreePath, column: TreeViewColumn, /) -> None: ... + def do_row_collapsed(self, iter: TreeIter, path: TreePath, /) -> None: ... + def do_row_expanded(self, iter: TreeIter, path: TreePath, /) -> None: ... def do_select_all(self) -> bool: ... def do_select_cursor_parent(self) -> bool: ... - def do_select_cursor_row(self, start_editing: bool) -> bool: ... + def do_select_cursor_row(self, start_editing: bool, /) -> bool: ... def do_start_interactive_search(self) -> bool: ... - def do_test_collapse_row(self, iter: TreeIter, path: TreePath) -> bool: ... - def do_test_expand_row(self, iter: TreeIter, path: TreePath) -> bool: ... + def do_test_collapse_row(self, iter: TreeIter, path: TreePath, /) -> bool: ... + def do_test_expand_row(self, iter: TreeIter, path: TreePath, /) -> bool: ... def do_toggle_cursor_row(self) -> bool: ... def do_unselect_all(self) -> bool: ... # override @@ -60123,13 +60186,13 @@ class UIManager(GObject.Object, Buildable): self, buffer ): ... # FIXME: Override is missing typing annotation def do_actions_changed(self) -> None: ... - def do_add_widget(self, widget: Widget) -> None: ... - def do_connect_proxy(self, action: Action, proxy: Widget) -> None: ... - def do_disconnect_proxy(self, action: Action, proxy: Widget) -> None: ... - def do_get_action(self, path: str) -> Action: ... - def do_get_widget(self, path: str) -> Widget: ... - def do_post_activate(self, action: Action) -> None: ... - def do_pre_activate(self, action: Action) -> None: ... + def do_add_widget(self, widget: Widget, /) -> None: ... + def do_connect_proxy(self, action: Action, proxy: Widget, /) -> None: ... + def do_disconnect_proxy(self, action: Action, proxy: Widget, /) -> None: ... + def do_get_action(self, path: str, /) -> Action: ... + def do_get_widget(self, path: str, /) -> Widget: ... + def do_post_activate(self, action: Action, /) -> None: ... + def do_pre_activate(self, action: Action, /) -> None: ... def ensure_update(self) -> None: ... def get_accel_group(self) -> AccelGroup: ... def get_action(self, path: str) -> Action: ... @@ -62662,9 +62725,9 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def destroy(self) -> None: ... def destroyed(self, widget_pointer: Widget) -> Widget: ... def device_is_shadowed(self, device: _Gdk3.Device) -> bool: ... - def do_adjust_baseline_allocation(self, baseline: int) -> None: ... + def do_adjust_baseline_allocation(self, baseline: int, /) -> None: ... def do_adjust_baseline_request( - self, minimum_baseline: int, natural_baseline: int + self, minimum_baseline: int, natural_baseline: int, / ) -> None: ... def do_adjust_size_allocation( self, @@ -62673,35 +62736,41 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): natural_size: int, allocated_pos: int, allocated_size: int, + /, ) -> None: ... def do_adjust_size_request( - self, orientation: _OrientationValueType, minimum_size: int, natural_size: int + self, + orientation: _OrientationValueType, + minimum_size: int, + natural_size: int, + /, ) -> None: ... - def do_button_press_event(self, event: _Gdk3.EventButton) -> bool: ... - def do_button_release_event(self, event: _Gdk3.EventButton) -> bool: ... - def do_can_activate_accel(self, signal_id: int) -> bool: ... - def do_child_notify(self, child_property: GObject.ParamSpec) -> None: ... + def do_button_press_event(self, event: _Gdk3.EventButton, /) -> bool: ... + def do_button_release_event(self, event: _Gdk3.EventButton, /) -> bool: ... + def do_can_activate_accel(self, signal_id: int, /) -> bool: ... + def do_child_notify(self, child_property: GObject.ParamSpec, /) -> None: ... def do_composited_changed(self) -> None: ... - def do_compute_expand(self, hexpand_p: bool, vexpand_p: bool) -> None: ... - def do_configure_event(self, event: _Gdk3.EventConfigure) -> bool: ... - def do_damage_event(self, event: _Gdk3.EventExpose) -> bool: ... - def do_delete_event(self, event: _Gdk3.EventAny) -> bool: ... + def do_compute_expand(self, hexpand_p: bool, vexpand_p: bool, /) -> None: ... + def do_configure_event(self, event: _Gdk3.EventConfigure, /) -> bool: ... + def do_damage_event(self, event: _Gdk3.EventExpose, /) -> bool: ... + def do_delete_event(self, event: _Gdk3.EventAny, /) -> bool: ... def do_destroy(self) -> None: ... - def do_destroy_event(self, event: _Gdk3.EventAny) -> bool: ... + def do_destroy_event(self, event: _Gdk3.EventAny, /) -> bool: ... def do_direction_changed( - self, previous_direction: _TextDirectionValueType + self, previous_direction: _TextDirectionValueType, / ) -> None: ... def do_dispatch_child_properties_changed( - self, n_pspecs: int, pspecs: GObject.ParamSpec + self, n_pspecs: int, pspecs: GObject.ParamSpec, / ) -> None: ... - def do_drag_begin(self, context: _Gdk3.DragContext) -> None: ... - def do_drag_data_delete(self, context: _Gdk3.DragContext) -> None: ... + def do_drag_begin(self, context: _Gdk3.DragContext, /) -> None: ... + def do_drag_data_delete(self, context: _Gdk3.DragContext, /) -> None: ... def do_drag_data_get( self, context: _Gdk3.DragContext, selection_data: SelectionData, info: int, time_: int, + /, ) -> None: ... def do_drag_data_received( self, @@ -62711,84 +62780,85 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): selection_data: SelectionData, info: int, time_: int, + /, ) -> None: ... def do_drag_drop( - self, context: _Gdk3.DragContext, x: int, y: int, time_: int + self, context: _Gdk3.DragContext, x: int, y: int, time_: int, / ) -> bool: ... - def do_drag_end(self, context: _Gdk3.DragContext) -> None: ... + def do_drag_end(self, context: _Gdk3.DragContext, /) -> None: ... def do_drag_failed( - self, context: _Gdk3.DragContext, result: _DragResultValueType + self, context: _Gdk3.DragContext, result: _DragResultValueType, / ) -> bool: ... - def do_drag_leave(self, context: _Gdk3.DragContext, time_: int) -> None: ... + def do_drag_leave(self, context: _Gdk3.DragContext, time_: int, /) -> None: ... def do_drag_motion( - self, context: _Gdk3.DragContext, x: int, y: int, time_: int + self, context: _Gdk3.DragContext, x: int, y: int, time_: int, / ) -> bool: ... - def do_draw(self, cr: cairo.Context[_SomeSurface]) -> bool: ... - def do_enter_notify_event(self, event: _Gdk3.EventCrossing) -> bool: ... - def do_event(self, event: _Gdk3.Event) -> bool: ... - def do_focus(self, direction: _DirectionTypeValueType) -> bool: ... - def do_focus_in_event(self, event: _Gdk3.EventFocus) -> bool: ... - def do_focus_out_event(self, event: _Gdk3.EventFocus) -> bool: ... + def do_draw(self, cr: cairo.Context[_SomeSurface], /) -> bool: ... + def do_enter_notify_event(self, event: _Gdk3.EventCrossing, /) -> bool: ... + def do_event(self, event: _Gdk3.Event, /) -> bool: ... + def do_focus(self, direction: _DirectionTypeValueType, /) -> bool: ... + def do_focus_in_event(self, event: _Gdk3.EventFocus, /) -> bool: ... + def do_focus_out_event(self, event: _Gdk3.EventFocus, /) -> bool: ... def do_get_accessible(self) -> Atk.Object: ... def do_get_preferred_height(self) -> tuple[int, int]: ... def do_get_preferred_height_and_baseline_for_width( - self, width: int + self, width: int, / ) -> tuple[int, int, int, int]: ... - def do_get_preferred_height_for_width(self, width: int) -> tuple[int, int]: ... + def do_get_preferred_height_for_width(self, width: int, /) -> tuple[int, int]: ... def do_get_preferred_width(self) -> tuple[int, int]: ... - def do_get_preferred_width_for_height(self, height: int) -> tuple[int, int]: ... + def do_get_preferred_width_for_height(self, height: int, /) -> tuple[int, int]: ... def do_get_request_mode(self) -> SizeRequestMode: ... - def do_grab_broken_event(self, event: _Gdk3.EventGrabBroken) -> bool: ... + def do_grab_broken_event(self, event: _Gdk3.EventGrabBroken, /) -> bool: ... def do_grab_focus(self) -> None: ... - def do_grab_notify(self, was_grabbed: bool) -> None: ... + def do_grab_notify(self, was_grabbed: bool, /) -> None: ... def do_hide(self) -> None: ... - def do_hierarchy_changed(self, previous_toplevel: Widget) -> None: ... - def do_key_press_event(self, event: _Gdk3.EventKey) -> bool: ... - def do_key_release_event(self, event: _Gdk3.EventKey) -> bool: ... - def do_keynav_failed(self, direction: _DirectionTypeValueType) -> bool: ... - def do_leave_notify_event(self, event: _Gdk3.EventCrossing) -> bool: ... + def do_hierarchy_changed(self, previous_toplevel: Widget, /) -> None: ... + def do_key_press_event(self, event: _Gdk3.EventKey, /) -> bool: ... + def do_key_release_event(self, event: _Gdk3.EventKey, /) -> bool: ... + def do_keynav_failed(self, direction: _DirectionTypeValueType, /) -> bool: ... + def do_leave_notify_event(self, event: _Gdk3.EventCrossing, /) -> bool: ... def do_map(self) -> None: ... - def do_map_event(self, event: _Gdk3.EventAny) -> bool: ... - def do_mnemonic_activate(self, group_cycling: bool) -> bool: ... - def do_motion_notify_event(self, event: _Gdk3.EventMotion) -> bool: ... - def do_move_focus(self, direction: _DirectionTypeValueType) -> None: ... - def do_parent_set(self, previous_parent: Widget) -> None: ... + def do_map_event(self, event: _Gdk3.EventAny, /) -> bool: ... + def do_mnemonic_activate(self, group_cycling: bool, /) -> bool: ... + def do_motion_notify_event(self, event: _Gdk3.EventMotion, /) -> bool: ... + def do_move_focus(self, direction: _DirectionTypeValueType, /) -> None: ... + def do_parent_set(self, previous_parent: Widget, /) -> None: ... def do_popup_menu(self) -> bool: ... - def do_property_notify_event(self, event: _Gdk3.EventProperty) -> bool: ... - def do_proximity_in_event(self, event: _Gdk3.EventProximity) -> bool: ... - def do_proximity_out_event(self, event: _Gdk3.EventProximity) -> bool: ... + def do_property_notify_event(self, event: _Gdk3.EventProperty, /) -> bool: ... + def do_proximity_in_event(self, event: _Gdk3.EventProximity, /) -> bool: ... + def do_proximity_out_event(self, event: _Gdk3.EventProximity, /) -> bool: ... def do_query_tooltip( - self, x: int, y: int, keyboard_tooltip: bool, tooltip: Tooltip + self, x: int, y: int, keyboard_tooltip: bool, tooltip: Tooltip, / ) -> bool: ... - def do_queue_draw_region(self, region: cairo.Region) -> None: ... + def do_queue_draw_region(self, region: cairo.Region, /) -> None: ... def do_realize(self) -> None: ... - def do_screen_changed(self, previous_screen: _Gdk3.Screen) -> None: ... - def do_scroll_event(self, event: _Gdk3.EventScroll) -> bool: ... - def do_selection_clear_event(self, event: _Gdk3.EventSelection) -> bool: ... + def do_screen_changed(self, previous_screen: _Gdk3.Screen, /) -> None: ... + def do_scroll_event(self, event: _Gdk3.EventScroll, /) -> bool: ... + def do_selection_clear_event(self, event: _Gdk3.EventSelection, /) -> bool: ... def do_selection_get( - self, selection_data: SelectionData, info: int, time_: int + self, selection_data: SelectionData, info: int, time_: int, / ) -> None: ... - def do_selection_notify_event(self, event: _Gdk3.EventSelection) -> bool: ... + def do_selection_notify_event(self, event: _Gdk3.EventSelection, /) -> bool: ... def do_selection_received( - self, selection_data: SelectionData, time_: int + self, selection_data: SelectionData, time_: int, / ) -> None: ... - def do_selection_request_event(self, event: _Gdk3.EventSelection) -> bool: ... + def do_selection_request_event(self, event: _Gdk3.EventSelection, /) -> bool: ... def do_show(self) -> None: ... def do_show_all(self) -> None: ... - def do_show_help(self, help_type: _WidgetHelpTypeValueType) -> bool: ... - def do_size_allocate(self, allocation: _Gdk3.Rectangle) -> None: ... - def do_state_changed(self, previous_state: _StateTypeValueType) -> None: ... + def do_show_help(self, help_type: _WidgetHelpTypeValueType, /) -> bool: ... + def do_size_allocate(self, allocation: _Gdk3.Rectangle, /) -> None: ... + def do_state_changed(self, previous_state: _StateTypeValueType, /) -> None: ... def do_state_flags_changed( - self, previous_state_flags: _StateFlagsValueType + self, previous_state_flags: _StateFlagsValueType, / ) -> None: ... - def do_style_set(self, previous_style: Style) -> None: ... + def do_style_set(self, previous_style: Style, /) -> None: ... def do_style_updated(self) -> None: ... - def do_touch_event(self, event: _Gdk3.EventTouch) -> bool: ... + def do_touch_event(self, event: _Gdk3.EventTouch, /) -> bool: ... def do_unmap(self) -> None: ... - def do_unmap_event(self, event: _Gdk3.EventAny) -> bool: ... + def do_unmap_event(self, event: _Gdk3.EventAny, /) -> bool: ... def do_unrealize(self) -> None: ... - def do_visibility_notify_event(self, event: _Gdk3.EventVisibility) -> bool: ... - def do_window_state_event(self, event: _Gdk3.EventWindowState) -> bool: ... + def do_visibility_notify_event(self, event: _Gdk3.EventVisibility, /) -> bool: ... + def do_window_state_event(self, event: _Gdk3.EventWindowState, /) -> bool: ... def drag_begin( self, targets: TargetList, @@ -63977,9 +64047,9 @@ class Window(Bin): def deiconify(self) -> None: ... def do_activate_default(self) -> None: ... def do_activate_focus(self) -> None: ... - def do_enable_debugging(self, toggle: bool) -> bool: ... + def do_enable_debugging(self, toggle: bool, /) -> bool: ... def do_keys_changed(self) -> None: ... - def do_set_focus(self, focus: Widget | None) -> None: ... + def do_set_focus(self, focus: Widget | None, /) -> None: ... def fullscreen(self) -> None: ... def fullscreen_on_monitor(self, screen: _Gdk3.Screen, monitor: int) -> None: ... def get_accept_focus(self) -> bool: ... diff --git a/src/gi-stubs/repository/_Gtk4.pyi b/src/gi-stubs/repository/_Gtk4.pyi index bcf79bce..faff996f 100644 --- a/src/gi-stubs/repository/_Gtk4.pyi +++ b/src/gi-stubs/repository/_Gtk4.pyi @@ -347,7 +347,7 @@ def show_uri_full( uri: str, timestamp: int, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[None, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[None, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -357,7 +357,7 @@ def show_uri_full( timestamp: int, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[None] | None, + callback: Gio._AsyncReadyVarArgsCallback[None] | None, ) -> None: ... def show_uri_full_finish(parent: Window, result: Gio.AsyncResult) -> bool: ... def test_accessible_assertion_message_role( @@ -1233,7 +1233,7 @@ class AlertDialog(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[AlertDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[AlertDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -1242,7 +1242,7 @@ class AlertDialog(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[AlertDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[AlertDialog] | None, ) -> None: ... def choose_finish(self, result: Gio.AsyncResult) -> int: ... def get_buttons(self) -> list[str]: ... @@ -1947,8 +1947,8 @@ class Application(Gio.Application): version: str = ..., ) -> None: ... def add_window(self, window: Window) -> None: ... - def do_window_added(self, window: Window) -> None: ... - def do_window_removed(self, window: Window) -> None: ... + def do_window_added(self, window: Window, /) -> None: ... + def do_window_removed(self, window: Window, /) -> None: ... def get_accels_for_action(self, detailed_action_name: str) -> list[str]: ... def get_actions_for_accel(self, accel: str) -> list[str]: ... def get_active_window(self) -> Window | None: ... @@ -3855,16 +3855,18 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): cell_area: _Gdk4.Rectangle, flags: _CellRendererStateValueType, edit_only: bool, + /, ) -> bool: ... - def do_add(self, renderer: CellRenderer) -> None: ... + def do_add(self, renderer: CellRenderer, /) -> None: ... def do_apply_attributes( self, tree_model: TreeModel, iter: TreeIter, is_expander: bool, is_expanded: bool, + /, ) -> None: ... - def do_copy_context(self, context: CellAreaContext) -> CellAreaContext: ... + def do_copy_context(self, context: CellAreaContext, /) -> CellAreaContext: ... def do_create_context(self) -> CellAreaContext: ... def do_event( self, @@ -3873,12 +3875,14 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): event: _Gdk4.Event, cell_area: _Gdk4.Rectangle, flags: _CellRendererStateValueType, + /, ) -> int: ... - def do_focus(self, direction: _DirectionTypeValueType) -> bool: ... + def do_focus(self, direction: _DirectionTypeValueType, /) -> bool: ... def do_foreach( self, - callback: Callable[[CellRenderer, Unpack[_DataTs]], bool], - *callback_data: Unpack[_DataTs], + callback: Callable[[CellRenderer, Any | None], bool], + callback_data: int | Any | None, + /, ) -> None: ... def do_foreach_alloc( self, @@ -3887,9 +3891,10 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): cell_area: _Gdk4.Rectangle, background_area: _Gdk4.Rectangle, callback: Callable[ - [CellRenderer, _Gdk4.Rectangle, _Gdk4.Rectangle, Unpack[_DataTs]], bool + [CellRenderer, _Gdk4.Rectangle, _Gdk4.Rectangle, Any | None], bool ], - *callback_data: Unpack[_DataTs], + callback_data: int | Any | None, + /, ) -> None: ... def do_get_cell_property( self, @@ -3897,28 +3902,30 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): property_id: int, value: Any, pspec: GObject.ParamSpec, + /, ) -> None: ... def do_get_preferred_height( - self, context: CellAreaContext, widget: Widget + self, context: CellAreaContext, widget: Widget, / ) -> tuple[int, int]: ... def do_get_preferred_height_for_width( - self, context: CellAreaContext, widget: Widget, width: int + self, context: CellAreaContext, widget: Widget, width: int, / ) -> tuple[int, int]: ... def do_get_preferred_width( - self, context: CellAreaContext, widget: Widget + self, context: CellAreaContext, widget: Widget, / ) -> tuple[int, int]: ... def do_get_preferred_width_for_height( - self, context: CellAreaContext, widget: Widget, height: int + self, context: CellAreaContext, widget: Widget, height: int, / ) -> tuple[int, int]: ... def do_get_request_mode(self) -> SizeRequestMode: ... def do_is_activatable(self) -> bool: ... - def do_remove(self, renderer: CellRenderer) -> None: ... + def do_remove(self, renderer: CellRenderer, /) -> None: ... def do_set_cell_property( self, renderer: CellRenderer, property_id: int, value: Any, pspec: GObject.ParamSpec, + /, ) -> None: ... def do_snapshot( self, @@ -3929,6 +3936,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): cell_area: _Gdk4.Rectangle, flags: _CellRendererStateValueType, paint_focus: bool, + /, ) -> None: ... def event( self, @@ -4253,9 +4261,9 @@ class CellAreaContext(GObject.Object): def parent_instance(self) -> GObject.Object: ... def __init__(self, *, area: CellArea | None = ...) -> None: ... def allocate(self, width: int, height: int) -> None: ... - def do_allocate(self, width: int, height: int) -> None: ... - def do_get_preferred_height_for_width(self, width: int) -> tuple[int, int]: ... - def do_get_preferred_width_for_height(self, height: int) -> tuple[int, int]: ... + def do_allocate(self, width: int, height: int, /) -> None: ... + def do_get_preferred_height_for_width(self, width: int, /) -> tuple[int, int]: ... + def do_get_preferred_width_for_height(self, height: int, /) -> tuple[int, int]: ... def do_reset(self) -> None: ... def get_allocation(self) -> tuple[int, int]: ... def get_area(self) -> CellArea: ... @@ -4492,22 +4500,24 @@ class CellRenderer(GObject.InitiallyUnowned): background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, flags: _CellRendererStateValueType, + /, ) -> bool: ... def do_editing_canceled(self) -> None: ... - def do_editing_started(self, editable: CellEditable, path: str) -> None: ... + def do_editing_started(self, editable: CellEditable, path: str, /) -> None: ... def do_get_aligned_area( self, widget: Widget, flags: _CellRendererStateValueType, cell_area: _Gdk4.Rectangle, + /, ) -> _Gdk4.Rectangle: ... - def do_get_preferred_height(self, widget: Widget) -> tuple[int, int]: ... + def do_get_preferred_height(self, widget: Widget, /) -> tuple[int, int]: ... def do_get_preferred_height_for_width( - self, widget: Widget, width: int + self, widget: Widget, width: int, / ) -> tuple[int, int]: ... - def do_get_preferred_width(self, widget: Widget) -> tuple[int, int]: ... + def do_get_preferred_width(self, widget: Widget, /) -> tuple[int, int]: ... def do_get_preferred_width_for_height( - self, widget: Widget, height: int + self, widget: Widget, height: int, / ) -> tuple[int, int]: ... def do_get_request_mode(self) -> SizeRequestMode: ... def do_snapshot( @@ -4517,6 +4527,7 @@ class CellRenderer(GObject.InitiallyUnowned): background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, flags: _CellRendererStateValueType, + /, ) -> None: ... def do_start_editing( self, @@ -4526,6 +4537,7 @@ class CellRenderer(GObject.InitiallyUnowned): background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, flags: _CellRendererStateValueType, + /, ) -> CellEditable | None: ... def get_aligned_area( self, @@ -5677,7 +5689,7 @@ class CellRendererText(CellRenderer): yalign: float = ..., ypad: int = ..., ) -> None: ... - def do_edited(self, path: str, new_text: str) -> None: ... + def do_edited(self, path: str, new_text: str, /) -> None: ... @classmethod def new(cls) -> CellRendererText: ... def set_fixed_height_from_font(self, number_of_rows: int) -> None: ... @@ -6890,7 +6902,7 @@ class ColorDialog(GObject.Object): parent: Window | None, initial_color: _Gdk4.RGBA | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[ColorDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[ColorDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -6900,7 +6912,7 @@ class ColorDialog(GObject.Object): initial_color: _Gdk4.RGBA | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[ColorDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[ColorDialog] | None, ) -> None: ... def choose_rgba_finish(self, result: Gio.AsyncResult) -> _Gdk4.RGBA: ... def get_modal(self) -> bool: ... @@ -7693,7 +7705,7 @@ class ComboBox(Widget, CellEditable, CellLayout): ) -> None: ... def do_activate(self) -> None: ... def do_changed(self) -> None: ... - def do_format_entry_text(self, path: str) -> str: ... + def do_format_entry_text(self, path: str, /) -> str: ... def get_active(self) -> int: ... def get_active_id(self) -> str | None: ... def get_active_iter(self) -> TreeIter | None: ... # CHECK Wrapped function @@ -8639,7 +8651,7 @@ class Dialog(Window): will add "Open" and "Close" buttons to dialog. """ # FIXME: Override is missing typing annotation def do_close(self) -> None: ... - def do_response(self, response_id: int) -> None: ... + def do_response(self, response_id: int, /) -> None: ... def get_content_area(self) -> Box: ... def get_header_bar(self) -> HeaderBar: ... def get_response_for_widget(self, widget: Widget) -> int: ... @@ -9087,7 +9099,7 @@ class DrawingArea(Widget): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_resize(self, width: int, height: int) -> None: ... + def do_resize(self, width: int, height: int, /) -> None: ... def get_content_height(self) -> int: ... def get_content_width(self) -> int: ... @classmethod @@ -10293,12 +10305,12 @@ class EntryBuffer(GObject.Object): def parent_instance(self) -> GObject.Object: ... def __init__(self, *, max_length: int = ..., text: str = ...) -> None: ... def delete_text(self, position: int, n_chars: int) -> int: ... - def do_delete_text(self, position: int, n_chars: int) -> int: ... - def do_deleted_text(self, position: int, n_chars: int) -> None: ... + def do_delete_text(self, position: int, n_chars: int, /) -> int: ... + def do_deleted_text(self, position: int, n_chars: int, /) -> None: ... def do_get_length(self) -> int: ... - def do_get_text(self, n_bytes: int) -> str: ... - def do_insert_text(self, position: int, chars: str, n_chars: int) -> int: ... - def do_inserted_text(self, position: int, chars: str, n_chars: int) -> None: ... + def do_get_text(self, n_bytes: int, /) -> str: ... + def do_insert_text(self, position: int, chars: str, n_chars: int, /) -> int: ... + def do_inserted_text(self, position: int, chars: str, n_chars: int, /) -> None: ... def emit_deleted_text(self, position: int, n_chars: int) -> None: ... def emit_inserted_text(self, position: int, chars: str, n_chars: int) -> None: ... def get_bytes(self) -> int: ... @@ -11498,7 +11510,7 @@ class FileDialog(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FileDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -11507,7 +11519,7 @@ class FileDialog(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FileDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog] | None, ) -> None: ... def open_finish(self, result: Gio.AsyncResult) -> Gio.File: ... @overload @@ -11519,7 +11531,7 @@ class FileDialog(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FileDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -11528,7 +11540,7 @@ class FileDialog(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FileDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog] | None, ) -> None: ... def open_multiple_finish(self, result: Gio.AsyncResult) -> Gio.ListModel: ... @overload @@ -11540,7 +11552,7 @@ class FileDialog(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FileDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -11549,7 +11561,7 @@ class FileDialog(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FileDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog] | None, ) -> None: ... def open_multiple_text_files_finish( self, result: Gio.AsyncResult @@ -11563,7 +11575,7 @@ class FileDialog(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FileDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -11572,7 +11584,7 @@ class FileDialog(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FileDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog] | None, ) -> None: ... def open_text_file_finish( self, result: Gio.AsyncResult @@ -11586,7 +11598,7 @@ class FileDialog(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FileDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -11595,7 +11607,7 @@ class FileDialog(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FileDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog] | None, ) -> None: ... def save_finish(self, result: Gio.AsyncResult) -> Gio.File: ... @overload @@ -11607,7 +11619,7 @@ class FileDialog(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FileDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -11616,7 +11628,7 @@ class FileDialog(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FileDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog] | None, ) -> None: ... def save_text_file_finish( self, result: Gio.AsyncResult @@ -11630,7 +11642,7 @@ class FileDialog(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FileDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -11639,7 +11651,7 @@ class FileDialog(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FileDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog] | None, ) -> None: ... def select_folder_finish(self, result: Gio.AsyncResult) -> Gio.File: ... @overload @@ -11651,7 +11663,7 @@ class FileDialog(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FileDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -11660,7 +11672,7 @@ class FileDialog(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FileDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileDialog] | None, ) -> None: ... def select_multiple_folders_finish( self, result: Gio.AsyncResult @@ -11783,7 +11795,7 @@ class FileLauncher(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FileLauncher, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileLauncher, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -11792,7 +11804,7 @@ class FileLauncher(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FileLauncher] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileLauncher] | None, ) -> None: ... def launch_finish(self, result: Gio.AsyncResult) -> bool: ... @classmethod @@ -11806,7 +11818,7 @@ class FileLauncher(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FileLauncher, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileLauncher, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -11815,7 +11827,7 @@ class FileLauncher(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FileLauncher] | None, + callback: Gio._AsyncReadyVarArgsCallback[FileLauncher] | None, ) -> None: ... def open_containing_folder_finish(self, result: Gio.AsyncResult) -> bool: ... def set_always_ask(self, always_ask: bool) -> None: ... @@ -11853,7 +11865,7 @@ class Filter(GObject.Object): def parent_instance(self) -> GObject.Object: ... def changed(self, change: _FilterChangeValueType) -> None: ... def do_get_strictness(self) -> FilterMatch: ... - def do_match(self, item: GObject.Object | None) -> bool: ... + def do_match(self, item: GObject.Object | None, /) -> bool: ... def get_strictness(self) -> FilterMatch: ... def match(self, item: GObject.Object) -> bool: ... @@ -13213,7 +13225,7 @@ class FontDialog(GObject.Object): parent: Window | None, initial_value: Pango.FontFace | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FontDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FontDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -13223,7 +13235,7 @@ class FontDialog(GObject.Object): initial_value: Pango.FontFace | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FontDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FontDialog] | None, ) -> None: ... def choose_face_finish(self, result: Gio.AsyncResult) -> Pango.FontFace: ... @overload @@ -13239,7 +13251,7 @@ class FontDialog(GObject.Object): parent: Window | None, initial_value: Pango.FontFamily | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FontDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FontDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -13249,7 +13261,7 @@ class FontDialog(GObject.Object): initial_value: Pango.FontFamily | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FontDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FontDialog] | None, ) -> None: ... def choose_family_finish(self, result: Gio.AsyncResult) -> Pango.FontFamily: ... @overload @@ -13265,7 +13277,7 @@ class FontDialog(GObject.Object): parent: Window | None, initial_value: Pango.FontDescription | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FontDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FontDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -13275,7 +13287,7 @@ class FontDialog(GObject.Object): initial_value: Pango.FontDescription | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FontDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FontDialog] | None, ) -> None: ... @overload def choose_font_and_features( @@ -13290,7 +13302,7 @@ class FontDialog(GObject.Object): parent: Window | None, initial_value: Pango.FontDescription | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[FontDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[FontDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -13300,7 +13312,7 @@ class FontDialog(GObject.Object): initial_value: Pango.FontDescription | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[FontDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[FontDialog] | None, ) -> None: ... def choose_font_and_features_finish( self, result: Gio.AsyncResult @@ -13629,7 +13641,7 @@ class Frame(Widget): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_compute_child_allocation(self, allocation: _Gdk4.Rectangle) -> None: ... + def do_compute_child_allocation(self, allocation: _Gdk4.Rectangle, /) -> None: ... def get_child(self) -> Widget | None: ... def get_label(self) -> str | None: ... def get_label_align(self) -> float: ... @@ -13800,8 +13812,8 @@ class GLArea(Widget): width_request: int = ..., ) -> None: ... def attach_buffers(self) -> None: ... - def do_render(self, context: _Gdk4.GLContext) -> bool: ... - def do_resize(self, width: int, height: int) -> None: ... + def do_render(self, context: _Gdk4.GLContext, /) -> bool: ... + def do_resize(self, width: int, height: int, /) -> None: ... def get_allowed_apis(self) -> _Gdk4.GLAPI: ... def get_api(self) -> _Gdk4.GLAPI: ... def get_auto_render(self) -> bool: ... @@ -15288,10 +15300,10 @@ class IMContext(GObject.Object): def activate_osk(self, event: _Gdk4.Event | None = None) -> bool: ... def delete_surrounding(self, offset: int, n_chars: int) -> bool: ... def do_activate_osk(self) -> None: ... - def do_activate_osk_with_event(self, event: _Gdk4.Event) -> bool: ... - def do_commit(self, str: str) -> None: ... - def do_delete_surrounding(self, offset: int, n_chars: int) -> bool: ... - def do_filter_keypress(self, event: _Gdk4.Event) -> bool: ... + def do_activate_osk_with_event(self, event: _Gdk4.Event, /) -> bool: ... + def do_commit(self, str: str, /) -> None: ... + def do_delete_surrounding(self, offset: int, n_chars: int, /) -> bool: ... + def do_filter_keypress(self, event: _Gdk4.Event, /) -> bool: ... def do_focus_in(self) -> None: ... def do_focus_out(self) -> None: ... def do_get_preedit_string(self) -> tuple[str, Pango.AttrList, int]: ... @@ -15302,13 +15314,13 @@ class IMContext(GObject.Object): def do_preedit_start(self) -> None: ... def do_reset(self) -> None: ... def do_retrieve_surrounding(self) -> bool: ... - def do_set_client_widget(self, widget: Widget | None) -> None: ... - def do_set_cursor_location(self, area: _Gdk4.Rectangle) -> None: ... - def do_set_surrounding(self, text: str, len: int, cursor_index: int) -> None: ... + def do_set_client_widget(self, widget: Widget | None, /) -> None: ... + def do_set_cursor_location(self, area: _Gdk4.Rectangle, /) -> None: ... + def do_set_surrounding(self, text: str, len: int, cursor_index: int, /) -> None: ... def do_set_surrounding_with_selection( - self, text: str, len: int, cursor_index: int, anchor_index: int + self, text: str, len: int, cursor_index: int, anchor_index: int, / ) -> None: ... - def do_set_use_preedit(self, use_preedit: bool) -> None: ... + def do_set_use_preedit(self, use_preedit: bool, /) -> None: ... def filter_key( self, press: bool, @@ -16806,14 +16818,14 @@ class LayoutManager(GObject.Object): self, widget: Widget, width: int, height: int, baseline: int ) -> None: ... def do_allocate( - self, widget: Widget, width: int, height: int, baseline: int + self, widget: Widget, width: int, height: int, baseline: int, / ) -> None: ... def do_create_layout_child( - self, widget: Widget, for_child: Widget + self, widget: Widget, for_child: Widget, / ) -> LayoutChild: ... - def do_get_request_mode(self, widget: Widget) -> SizeRequestMode: ... + def do_get_request_mode(self, widget: Widget, /) -> SizeRequestMode: ... def do_measure( - self, widget: Widget, orientation: _OrientationValueType, for_size: int + self, widget: Widget, orientation: _OrientationValueType, for_size: int, / ) -> tuple[int, int, int, int]: ... def do_root(self) -> None: ... def do_unroot(self) -> None: ... @@ -18607,10 +18619,10 @@ class MediaStream(GObject.Object, _Gdk4.Paintable): ) -> None: ... def do_pause(self) -> None: ... def do_play(self) -> bool: ... - def do_realize(self, surface: _Gdk4.Surface) -> None: ... - def do_seek(self, timestamp: int) -> None: ... - def do_unrealize(self, surface: _Gdk4.Surface) -> None: ... - def do_update_audio(self, muted: bool, volume: float) -> None: ... + def do_realize(self, surface: _Gdk4.Surface, /) -> None: ... + def do_seek(self, timestamp: int, /) -> None: ... + def do_unrealize(self, surface: _Gdk4.Surface, /) -> None: ... + def do_update_audio(self, muted: bool, volume: float, /) -> None: ... def gerror(self, error: GLib.Error) -> None: ... def get_duration(self) -> int: ... def get_ended(self) -> bool: ... @@ -19437,7 +19449,7 @@ class NativeDialog(GObject.Object): ) -> None: ... def destroy(self) -> None: ... def do_hide(self) -> None: ... - def do_response(self, response_id: int) -> None: ... + def do_response(self, response_id: int, /) -> None: ... def do_show(self) -> None: ... def get_modal(self) -> bool: ... def get_title(self) -> str | None: ... @@ -21650,7 +21662,7 @@ class PrintDialog(GObject.Object): parent: Window | None, setup: PrintSetup | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[PrintDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[PrintDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -21660,7 +21672,7 @@ class PrintDialog(GObject.Object): setup: PrintSetup | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[PrintDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[PrintDialog] | None, ) -> None: ... @overload def print_file( @@ -21677,7 +21689,7 @@ class PrintDialog(GObject.Object): setup: PrintSetup | None, file: Gio.File, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[PrintDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[PrintDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -21688,7 +21700,7 @@ class PrintDialog(GObject.Object): file: Gio.File, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[PrintDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[PrintDialog] | None, ) -> None: ... def print_file_finish(self, result: Gio.AsyncResult) -> bool: ... def print_finish(self, result: Gio.AsyncResult) -> Gio.OutputStream: ... @@ -21706,7 +21718,7 @@ class PrintDialog(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[PrintDialog, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[PrintDialog, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -21715,7 +21727,7 @@ class PrintDialog(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[PrintDialog] | None, + callback: Gio._AsyncReadyVarArgsCallback[PrintDialog] | None, ) -> None: ... def setup_finish(self, result: Gio.AsyncResult) -> PrintSetup: ... @@ -21933,21 +21945,21 @@ class PrintOperation(GObject.Object, PrintOperationPreview): use_full_page: bool = ..., ) -> None: ... def cancel(self) -> None: ... - def do_begin_print(self, context: PrintContext) -> None: ... - def do_custom_widget_apply(self, widget: Widget) -> None: ... - def do_done(self, result: _PrintOperationResultValueType) -> None: ... - def do_draw_page(self, context: PrintContext, page_nr: int) -> None: ... - def do_end_print(self, context: PrintContext) -> None: ... - def do_paginate(self, context: PrintContext) -> bool: ... + def do_begin_print(self, context: PrintContext, /) -> None: ... + def do_custom_widget_apply(self, widget: Widget, /) -> None: ... + def do_done(self, result: _PrintOperationResultValueType, /) -> None: ... + def do_draw_page(self, context: PrintContext, page_nr: int, /) -> None: ... + def do_end_print(self, context: PrintContext, /) -> None: ... + def do_paginate(self, context: PrintContext, /) -> bool: ... def do_preview( - self, preview: PrintOperationPreview, context: PrintContext, parent: Window + self, preview: PrintOperationPreview, context: PrintContext, parent: Window, / ) -> bool: ... def do_request_page_setup( - self, context: PrintContext, page_nr: int, setup: PageSetup + self, context: PrintContext, page_nr: int, setup: PageSetup, / ) -> None: ... def do_status_changed(self) -> None: ... def do_update_custom_widget( - self, widget: Widget, setup: PageSetup, settings: PrintSettings + self, widget: Widget, setup: PageSetup, settings: PrintSettings, / ) -> None: ... def draw_page_finish(self) -> None: ... def get_default_page_setup(self) -> PageSetup: ... @@ -22825,12 +22837,12 @@ class Range(Widget, AccessibleRange, Orientable): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_adjust_bounds(self, new_value: float) -> None: ... + def do_adjust_bounds(self, new_value: float, /) -> None: ... def do_change_value( - self, scroll: _ScrollTypeValueType, new_value: float + self, scroll: _ScrollTypeValueType, new_value: float, / ) -> bool: ... - def do_get_range_border(self, border_: Border) -> None: ... - def do_move_slider(self, scroll: _ScrollTypeValueType) -> None: ... + def do_get_range_border(self, border_: Border, /) -> None: ... + def do_move_slider(self, scroll: _ScrollTypeValueType, /) -> None: ... def do_value_changed(self) -> None: ... def get_adjustment(self) -> Adjustment: ... def get_fill_level(self) -> float: ... @@ -23501,7 +23513,7 @@ class ScaleButton(Widget, AccessibleRange, Orientable): visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_value_changed(self, value: float) -> None: ... + def do_value_changed(self, value: float, /) -> None: ... def get_active(self) -> bool: ... def get_adjustment(self) -> Adjustment: ... def get_has_frame(self) -> bool: ... @@ -26183,7 +26195,7 @@ class Sorter(GObject.Object): def changed(self, change: _SorterChangeValueType) -> None: ... def compare(self, item1: GObject.Object, item2: GObject.Object) -> Ordering: ... def do_compare( - self, item1: GObject.Object | None, item2: GObject.Object | None + self, item1: GObject.Object | None, item2: GObject.Object | None, / ) -> Ordering: ... def do_get_order(self) -> SorterOrder: ... def get_order(self) -> SorterOrder: ... @@ -27985,26 +27997,28 @@ class TextBuffer(GObject.Object): def delete_mark(self, mark: TextMark) -> None: ... def delete_mark_by_name(self, name: str) -> None: ... def delete_selection(self, interactive: bool, default_editable: bool) -> bool: ... - def do_apply_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ... + def do_apply_tag(self, tag: TextTag, start: TextIter, end: TextIter, /) -> None: ... def do_begin_user_action(self) -> None: ... def do_changed(self) -> None: ... - def do_delete_range(self, start: TextIter, end: TextIter) -> None: ... + def do_delete_range(self, start: TextIter, end: TextIter, /) -> None: ... def do_end_user_action(self) -> None: ... def do_insert_child_anchor( - self, iter: TextIter, anchor: TextChildAnchor + self, iter: TextIter, anchor: TextChildAnchor, / ) -> None: ... def do_insert_paintable( - self, iter: TextIter, paintable: _Gdk4.Paintable + self, iter: TextIter, paintable: _Gdk4.Paintable, / ) -> None: ... def do_insert_text( - self, pos: TextIter, new_text: str, new_text_length: int + self, pos: TextIter, new_text: str, new_text_length: int, / ) -> None: ... - def do_mark_deleted(self, mark: TextMark) -> None: ... - def do_mark_set(self, location: TextIter, mark: TextMark) -> None: ... + def do_mark_deleted(self, mark: TextMark, /) -> None: ... + def do_mark_set(self, location: TextIter, mark: TextMark, /) -> None: ... def do_modified_changed(self) -> None: ... - def do_paste_done(self, clipboard: _Gdk4.Clipboard) -> None: ... + def do_paste_done(self, clipboard: _Gdk4.Clipboard, /) -> None: ... def do_redo(self) -> None: ... - def do_remove_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ... + def do_remove_tag( + self, tag: TextTag, start: TextIter, end: TextIter, / + ) -> None: ... def do_undo(self) -> None: ... def end_irreversible_action(self) -> None: ... def end_user_action(self) -> None: ... @@ -29003,23 +29017,26 @@ class TextView(Widget, AccessibleText, Scrollable): def do_backspace(self) -> None: ... def do_copy_clipboard(self) -> None: ... def do_cut_clipboard(self) -> None: ... - def do_delete_from_cursor(self, type: _DeleteTypeValueType, count: int) -> None: ... + def do_delete_from_cursor( + self, type: _DeleteTypeValueType, count: int, / + ) -> None: ... def do_extend_selection( self, granularity: _TextExtendSelectionValueType, location: TextIter, start: TextIter, end: TextIter, + /, ) -> bool: ... - def do_insert_at_cursor(self, str: str) -> None: ... + def do_insert_at_cursor(self, str: str, /) -> None: ... def do_insert_emoji(self) -> None: ... def do_move_cursor( - self, step: _MovementStepValueType, count: int, extend_selection: bool + self, step: _MovementStepValueType, count: int, extend_selection: bool, / ) -> None: ... def do_paste_clipboard(self) -> None: ... def do_set_anchor(self) -> None: ... def do_snapshot_layer( - self, layer: _TextViewLayerValueType, snapshot: Snapshot + self, layer: _TextViewLayerValueType, snapshot: Snapshot, / ) -> None: ... def do_toggle_overwrite(self) -> None: ... def forward_display_line(self, iter: TextIter) -> bool: ... @@ -29884,9 +29901,9 @@ class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): def convert_iter_to_child_iter(self, filter_iter: TreeIter) -> TreeIter: ... def convert_path_to_child_path(self, filter_path: TreePath) -> TreePath | None: ... def do_modify( - self, child_model: TreeModel, iter: TreeIter, value: Any, column: int + self, child_model: TreeModel, iter: TreeIter, value: Any, column: int, / ) -> None: ... - def do_visible(self, child_model: TreeModel, iter: TreeIter) -> bool: ... + def do_visible(self, child_model: TreeModel, iter: TreeIter, /) -> bool: ... def get_model(self) -> TreeModel: ... def refilter(self) -> None: ... def set_modify_func( @@ -30625,22 +30642,22 @@ class TreeView(Widget, Scrollable): def do_columns_changed(self) -> None: ... def do_cursor_changed(self) -> None: ... def do_expand_collapse_cursor_row( - self, logical: bool, expand: bool, open_all: bool + self, logical: bool, expand: bool, open_all: bool, / ) -> bool: ... def do_move_cursor( - self, step: _MovementStepValueType, count: int, extend: bool, modify: bool + self, step: _MovementStepValueType, count: int, extend: bool, modify: bool, / ) -> bool: ... def do_row_activated( - self, path: TreePath, column: TreeViewColumn | None + self, path: TreePath, column: TreeViewColumn | None, / ) -> None: ... - def do_row_collapsed(self, iter: TreeIter, path: TreePath) -> None: ... - def do_row_expanded(self, iter: TreeIter, path: TreePath) -> None: ... + def do_row_collapsed(self, iter: TreeIter, path: TreePath, /) -> None: ... + def do_row_expanded(self, iter: TreeIter, path: TreePath, /) -> None: ... def do_select_all(self) -> bool: ... def do_select_cursor_parent(self) -> bool: ... - def do_select_cursor_row(self, start_editing: bool) -> bool: ... + def do_select_cursor_row(self, start_editing: bool, /) -> bool: ... def do_start_interactive_search(self) -> bool: ... - def do_test_collapse_row(self, iter: TreeIter, path: TreePath) -> bool: ... - def do_test_expand_row(self, iter: TreeIter, path: TreePath) -> bool: ... + def do_test_collapse_row(self, iter: TreeIter, path: TreePath, /) -> bool: ... + def do_test_expand_row(self, iter: TreeIter, path: TreePath, /) -> bool: ... def do_toggle_cursor_row(self) -> bool: ... def do_unselect_all(self) -> bool: ... def enable_model_drag_dest( @@ -31077,7 +31094,7 @@ class UriLauncher(GObject.Object): self, parent: Window | None, cancellable: Gio.Cancellable | None, - callback: Gio.AsyncReadyCallback[UriLauncher, Unpack[_DataTs]] | None, + callback: Gio._AsyncReadyVarArgsCallback[UriLauncher, Unpack[_DataTs]] | None, *user_data: Unpack[_DataTs], ) -> None: ... @overload @@ -31086,7 +31103,7 @@ class UriLauncher(GObject.Object): parent: Window | None = None, cancellable: Gio.Cancellable | None = None, *, - callback: Gio.AsyncReadyCallback[UriLauncher] | None, + callback: Gio._AsyncReadyVarArgsCallback[UriLauncher] | None, ) -> None: ... def launch_finish(self, result: Gio.AsyncResult) -> bool: ... @classmethod @@ -31772,36 +31789,38 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def create_pango_context(self) -> Pango.Context: ... def create_pango_layout(self, text: str | None = None) -> Pango.Layout: ... def dispose_template(self, widget_type: type[Any]) -> None: ... - def do_compute_expand(self, hexpand_p: bool, vexpand_p: bool) -> None: ... - def do_contains(self, x: float, y: float) -> bool: ... - def do_css_changed(self, change: CssStyleChange) -> None: ... + def do_compute_expand(self, hexpand_p: bool, vexpand_p: bool, /) -> None: ... + def do_contains(self, x: float, y: float, /) -> bool: ... + def do_css_changed(self, change: CssStyleChange, /) -> None: ... def do_direction_changed( - self, previous_direction: _TextDirectionValueType + self, previous_direction: _TextDirectionValueType, / ) -> None: ... - def do_focus(self, direction: _DirectionTypeValueType) -> bool: ... + def do_focus(self, direction: _DirectionTypeValueType, /) -> bool: ... def do_get_request_mode(self) -> SizeRequestMode: ... def do_grab_focus(self) -> bool: ... def do_hide(self) -> None: ... - def do_keynav_failed(self, direction: _DirectionTypeValueType) -> bool: ... + def do_keynav_failed(self, direction: _DirectionTypeValueType, /) -> bool: ... def do_map(self) -> None: ... def do_measure( - self, orientation: _OrientationValueType, for_size: int + self, orientation: _OrientationValueType, for_size: int, / ) -> tuple[int, int, int, int]: ... - def do_mnemonic_activate(self, group_cycling: bool) -> bool: ... - def do_move_focus(self, direction: _DirectionTypeValueType) -> None: ... + def do_mnemonic_activate(self, group_cycling: bool, /) -> bool: ... + def do_move_focus(self, direction: _DirectionTypeValueType, /) -> None: ... def do_query_tooltip( - self, x: int, y: int, keyboard_tooltip: bool, tooltip: Tooltip + self, x: int, y: int, keyboard_tooltip: bool, tooltip: Tooltip, / ) -> bool: ... def do_realize(self) -> None: ... def do_root(self) -> None: ... - def do_set_focus_child(self, child: Widget | None) -> None: ... + def do_set_focus_child(self, child: Widget | None, /) -> None: ... def do_show(self) -> None: ... - def do_size_allocate(self, width: int, height: int, baseline: int) -> None: ... - def do_snapshot(self, snapshot: Snapshot) -> None: ... + def do_size_allocate(self, width: int, height: int, baseline: int, /) -> None: ... + def do_snapshot(self, snapshot: Snapshot, /) -> None: ... def do_state_flags_changed( - self, previous_state_flags: _StateFlagsValueType + self, previous_state_flags: _StateFlagsValueType, / + ) -> None: ... + def do_system_setting_changed( + self, settings: _SystemSettingValueType, / ) -> None: ... - def do_system_setting_changed(self, settings: _SystemSettingValueType) -> None: ... def do_unmap(self) -> None: ... def do_unrealize(self) -> None: ... def do_unroot(self) -> None: ... @@ -32387,7 +32406,7 @@ class Window(Widget, Native, Root, ShortcutManager): def do_activate_default(self) -> None: ... def do_activate_focus(self) -> None: ... def do_close_request(self) -> bool: ... - def do_enable_debugging(self, toggle: bool) -> bool: ... + def do_enable_debugging(self, toggle: bool, /) -> bool: ... def do_keys_changed(self) -> None: ... def fullscreen(self) -> None: ... def fullscreen_on_monitor(self, monitor: _Gdk4.Monitor) -> None: ... diff --git a/src/pygobject_stub_generator/arguments.py b/src/pygobject_stub_generator/arguments.py index 2a308674..8703f1d2 100644 --- a/src/pygobject_stub_generator/arguments.py +++ b/src/pygobject_stub_generator/arguments.py @@ -51,6 +51,11 @@ def callable_flags(self) -> int: if isinstance(info, GI.FunctionInfo): return info.get_flags() + if isinstance(info, GI.VFuncInfo) and isinstance( + self.callable_container, (GI.ObjectInfo, GI.InterfaceInfo) + ): + return GI.FunctionInfoFlags.IS_METHOD + return 0 @property @@ -151,6 +156,7 @@ def for_callable( ) > -1: hidden_indexes.add(return_array_length_index) + is_vfunc = isinstance(info, GI.VFuncInfo) is_callback = isinstance(info, GI.CallbackInfo) if is_callback: @@ -196,9 +202,11 @@ def for_callable( iface_info = type_info.get_interface() if isinstance(iface_info, GI.CallbackInfo): - # Hide destroy and closure args for callbacks + # Hide destroy and closure args for callbacks if this + # isn't a vfunc if ( - arg_index not in hidden_indexes + not is_vfunc + and arg_index not in hidden_indexes and arg_index not in closure_indexes ): if ( diff --git a/src/pygobject_stub_generator/stub.py b/src/pygobject_stub_generator/stub.py index 9805e7dd..f660e099 100644 --- a/src/pygobject_stub_generator/stub.py +++ b/src/pygobject_stub_generator/stub.py @@ -467,10 +467,6 @@ def get_callable_arguments( ) -> tuple[dict[str, str], list[str]]: arguments = Arguments.for_callable(info, allow_varargs=allow_varargs) - is_awaitable_eligible = ( - isinstance(info, GI.FunctionInfo) and get_finish_func(info) is not None - ) - if mode == "awaitable": arguments = arguments.as_async() elif mode == "async_callback_kwargs": @@ -512,13 +508,19 @@ def get_callable_arguments( for py_arg in py_args: if ( - is_awaitable_eligible - and py_arg.c_index == arguments.async_callback_index + py_arg.c_index == arguments.async_callback_index + and isinstance( + iface := py_arg.info.get_type_info().get_interface(), + GI.CallbackInfo, + ) + and f"{iface.get_namespace()}.{iface.get_name()}" + == "Gio.AsyncReadyCallback" ): arg_type = self.type_info_to_python( py_arg.info.get_type_info(), nullable=py_arg.nullable, async_callback_argument=py_arg, + async_callback_kwargs=(mode == "async_callback_kwargs"), ) else: arg_type = self.type_info_to_python( @@ -576,6 +578,7 @@ def type_info_to_python( varargs_callback: bool | MissingType = MISSING, closure_argument: bool | MissingType = MISSING, async_callback_argument: VisibleArgument | None = None, + async_callback_kwargs: bool | MissingType = MISSING, ) -> str: py_arg: VisibleArgument | None = None if isinstance(info, VisibleArgument): @@ -589,6 +592,7 @@ def type_info_to_python( closure_argument = get_value( closure_argument, False if py_arg is None else py_arg.is_closure_target ) + async_callback_kwargs = get_value(async_callback_kwargs, False) tag = info.get_tag() @@ -698,7 +702,7 @@ def type_info_to_python( == "Gio.AsyncReadyCallback" ): callback_symbol = self.get_namespace_member( - "Gio", "AsyncReadyCallback" + "Gio", "_AsyncReadyCallback" ) class_info = async_callback_argument.callable_container source_type = ( @@ -713,11 +717,41 @@ def type_info_to_python( ) else self.get_namespace_member(class_info) ) - user_data_args = ( - f", {self.get_unpack_data_ts()}" - if async_callback_argument.is_varargs_callback - else "" - ) + + if isinstance( + async_callback_argument.callable_info, GI.VFuncInfo + ): + pointer_type = ( + f"int | {self.get_import('typing', 'Any')} | None" + ) + user_data_args = f", {pointer_type}" + elif async_callback_kwargs: + callback_symbol = self.get_namespace_member( + "Gio", "_AsyncReadyVarArgsCallback" + ) + user_data_args = "" + elif async_callback_argument.is_varargs_callback: + callback_symbol = self.get_namespace_member( + "Gio", "_AsyncReadyVarArgsCallback" + ) + user_data_args = f", {self.get_unpack_data_ts()}" + elif ( + closure_index + := async_callback_argument.info.get_closure_index() + ) > -1: + user_data_arg = ( + async_callback_argument.callable_info.get_arguments()[ + closure_index + ] + ) + user_data_type = self.type_info_to_python( + user_data_arg.get_type_info(), + nullable=user_data_arg.may_be_null(), + closure_argument=True, + ) + user_data_args = f", {user_data_type}" + else: + user_data_args = "" py_type = f"{callback_symbol}[{source_type}{user_data_args}]" else: @@ -965,8 +999,10 @@ def __build_function( ) -> str: lines: list[str] = [] + is_vfunc = isinstance(function, GI.VFuncInfo) + + method: bool = False constructor: bool = False - method: bool = isinstance(function, GI.VFuncInfo) static: bool = False # Flags @@ -975,7 +1011,7 @@ def __build_function( if function_flags & GI.FunctionInfoFlags.IS_CONSTRUCTOR: constructor = True - if function_flags & GI.FunctionInfoFlags.IS_METHOD: + if is_vfunc or (function_flags & GI.FunctionInfoFlags.IS_METHOD): method = True if in_class and not method and not constructor: @@ -1010,6 +1046,12 @@ def __build_function( for name, arg in args.items() ] + if is_vfunc and args_types: + # vfuncs are invoked by PyGObject's C marshaller with a positional tuple; + # this means it doesn't matter what the names of the arguments are, so stubs + # need to be positional-only + args_types.append("/") + # Generate string if constructor: if name == "__init__": @@ -1468,8 +1510,10 @@ def build(self) -> str: # callbacks = self.__build_callback_types() if self.namespace == "Gio": - type_alias = self.get_import("typing", "TypeAlias") - callable_symbol = self.get_import("collections.abc", "Callable") + async_ready_callback = self.get_type_alias("_AsyncReadyCallback") + async_ready_var_args_callback = self.get_type_alias( + "_AsyncReadyVarArgsCallback" + ) unpack_data_ts_symbol = self.get_unpack_data_ts() gobject_protocol_symbol = self.get_namespace_member( "GObject", "ObjectProtocol" @@ -1477,11 +1521,21 @@ def build(self) -> str: source_typevar_symbol = self.get_typevar( "_SourceObjectT", bound=f"{gobject_protocol_symbol} | None" ) + t_co_symbol = self.get_typevar( + "_T", covariant=True, default=self.get_import("typing", "Any") + ) + async_result_symbol = self.get_namespace_member("Gio", "AsyncResult") - extras.append( - f"AsyncReadyCallback: {type_alias} = {callable_symbol}[[{ - source_typevar_symbol - }, {async_result_symbol}, {unpack_data_ts_symbol}], None]" + callable_symbol = self.get_import("collections.abc", "Callable") + extras.extend( + [ + f"{async_ready_callback} = {callable_symbol}[[{ + source_typevar_symbol + }, {async_result_symbol}, {t_co_symbol}], None]", + f"{async_ready_var_args_callback} = {callable_symbol}[[{ + source_typevar_symbol + }, {async_result_symbol}, {unpack_data_ts_symbol}], None]", + ] ) imports = [f"{_import}" for _import in self.needed_imports.values()]