Avoid using string literals in type annotations (#2294)

This commit is contained in:
Yusuke Miyazaki
2018-07-03 12:23:29 +09:00
committed by Jelle Zijlstra
parent 25ad95de4f
commit 6192cce9d9
50 changed files with 175 additions and 175 deletions

View File

@@ -521,7 +521,7 @@ class socket:
# --- methods ---
# second tuple item is an address
def accept(self) -> Tuple['socket', Any]: ...
def accept(self) -> Tuple[socket, Any]: ...
def bind(self, address: Union[tuple, str, bytes]) -> None: ...
def close(self) -> None: ...
def connect(self, address: Union[tuple, str, bytes]) -> None: ...