mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 09:48:40 +08:00
use '-> Any' instead of '-> object'
This commit is contained in:
+10
-10
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user