use '-> Any' instead of '-> object'

This commit is contained in:
Matthias Kramm
2015-09-15 08:13:15 -07:00
parent edd35eaf2e
commit 20f28061a2
38 changed files with 285 additions and 285 deletions
+10 -10
View File
@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, GenericType
from typing import Any, List, Tuple, Dict, GenericType
CODESIZE = ... # type: int
MAGIC = ... # type: int
@@ -19,13 +19,13 @@ def getlower(a: int, b: int) -> int: ...
class SRE_Match(object):
def __copy__() -> object:
def __copy__() -> Any:
raise TypeError()
def __deepcopy__(*args, **kwargs) -> object:
def __deepcopy__(*args, **kwargs) -> Any:
raise TypeError()
def end(*args, **kwargs) -> int:
raise IndexError()
def expand(*args, **kwargs) -> object: ...
def expand(*args, **kwargs) -> Any: ...
def group(*args, **kwargs) -> tuple: ...
def groupdict(*args, **kwargs) -> dict: ...
def groups(*args, **kwargs) -> tuple: ...
@@ -35,19 +35,19 @@ class SRE_Match(object):
raise IndexError()
class SRE_Pattern(object):
def __copy__() -> object:
def __copy__() -> Any:
raise TypeError()
def __deepcopy__(*args, **kwargs) -> object:
def __deepcopy__(*args, **kwargs) -> Any:
raise TypeError()
def findall(source, *args, **kwargs) -> List[tuple]: ...
def finditer(*args, **kwargs) -> callable_iterator: ...
def match(pattern, *args, **kwargs) -> object: ...
def match(pattern, *args, **kwargs) -> Any: ...
def scanner(a, *args, **kwargs) -> SRE_Scanner: ...
def search(pattern, *args, **kwargs) -> object: ...
def search(pattern, *args, **kwargs) -> Any: ...
def split(source, *args, **kwargs) -> List[None]: ...
def sub(repl, string, *args, **kwargs) -> tuple: ...
def subn(repl, string, *args, **kwargs) -> tuple: ...
class SRE_Scanner(object):
def match() -> object: ...
def search() -> object: ...
def match() -> Any: ...
def search() -> Any: ...