Skip to content

Commit cf3947b

Browse files
committed
Workaround the mypy bug python/mypy#708
1 parent e61410f commit cf3947b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stubs/dbus/service.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import dbus
44
from dbus.connection import Connection
55
from dbus._dbus import SessionBus
6-
from typing import Optional, Tuple, Callable, Union
6+
from typing import Any, Optional, Tuple, Union
77

88

99
class Object(dbus.Interface):
@@ -25,14 +25,14 @@ def method(
2525
utf8_strings: bool=...,
2626
byte_arrays: bool=...,
2727

28-
) -> Callable: ...
28+
) -> Any: ...
2929

3030
def signal(
3131
dbus_interface: str=...,
3232
signature: Optional[str]=...,
3333
path_keyword: Optional[str]=...,
3434
rel_path_keyword: Optional[str]=...,
35-
) -> Callable: ...
35+
) -> Any: ...
3636

3737
class BusName(object):
3838
def __new__(cls,

stubs/pkg_resources/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import (Iterable, Optional, Any, Callable)
22
class EntryPoint(object):
3-
def load(self, require: bool = ..., *args: Any, **kwargs: Any) -> Callable: ...
3+
def load(self, require: bool = ..., *args: Any, **kwargs: Any) -> Any: ...
44

55

66
def iter_entry_points(group: str, name: Optional[str] = ...) -> Iterable[EntryPoint]: ...

0 commit comments

Comments
 (0)