This repository has been archived by the owner on Apr 26, 2020. It is now read-only.
forked from kalkin/qubes-dbus
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add dbus.exceptions stubs - Add dbus.connection.SignalMatch - Update stubs from manager project
- Loading branch information
Showing
6 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
class Connection(object): | ||
pass | ||
|
||
|
||
class SignalMatch(object): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
class DBusException(Exception): | ||
def __init__(self, *args, **kwargs) -> None: ... | ||
|
||
class MissingErrorHandlerException(DBusException): | ||
def __init__(self) -> None: ... | ||
|
||
class MissingReplyHandlerException(DBusException): | ||
def __init__(self) -> None: ... | ||
|
||
class ValidationException(DBusException): | ||
def __init__(self, msg: str='') -> None: ... | ||
|
||
class IntrospectionParserException(DBusException): | ||
def __init__(self, msg: str='') -> None: ... | ||
|
||
class UnknownMethodException(DBusException): | ||
def __init__(self, method: str) -> None: ... | ||
|
||
class NameExistsException(DBusException): | ||
def __init__(self, name: str) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
# Stubs for dbus.proxies | ||
from typing import Optional, Callable | ||
import dbus | ||
|
||
from typing import Any, Callable, Optional, Union | ||
|
||
ObjectPath = Union[dbus.ObjectPath, str] | ||
|
||
|
||
class ProxyObject(object): | ||
def get_dbus_method(self, member: str=..., dbus_interface: Optional[str]=...) -> Callable: ... | ||
|
||
bus_name = ... # type: str | ||
|
||
def __init__(conn: dbus.Bus=..., bus_name: str=..., | ||
object_path: ObjectPath=..., follow_name_owner_changes: bool=..., introspect: bool=..., **kwargs) -> None: | ||
... | ||
|
||
def get_dbus_method(self, member: str=..., dbus_interface: Optional[str]=...): ... | ||
|
||
def connect_to_signal(self, signal_name: str=..., | ||
handler_function: Any=..., | ||
dbus_interface: Optional[str]=..., **keywords) -> None: | ||
... | ||
|
||
def Introspect(self) -> dbus.String: | ||
... | ||
|
||
# vim: ft=python tw=0 syntax=python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
def require_version(namespace:str, version:str) -> None: ... |