Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
Workaround the mypy bug python/mypy#708
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkin committed Jun 27, 2017
1 parent e61410f commit cf3947b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions stubs/dbus/service.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import dbus
from dbus.connection import Connection
from dbus._dbus import SessionBus
from typing import Optional, Tuple, Callable, Union
from typing import Any, Optional, Tuple, Union


class Object(dbus.Interface):
Expand All @@ -25,14 +25,14 @@ def method(
utf8_strings: bool=...,
byte_arrays: bool=...,

) -> Callable: ...
) -> Any: ...

def signal(
dbus_interface: str=...,
signature: Optional[str]=...,
path_keyword: Optional[str]=...,
rel_path_keyword: Optional[str]=...,
) -> Callable: ...
) -> Any: ...

class BusName(object):
def __new__(cls,
Expand Down
2 changes: 1 addition & 1 deletion stubs/pkg_resources/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import (Iterable, Optional, Any, Callable)
class EntryPoint(object):
def load(self, require: bool = ..., *args: Any, **kwargs: Any) -> Callable: ...
def load(self, require: bool = ..., *args: Any, **kwargs: Any) -> Any: ...


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

0 comments on commit cf3947b

Please sign in to comment.