mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-19 14:59:48 +08:00
Fixing flake8 E121, E122, E123, E124, E125, E126 errors
This commit is contained in:
Vendored
+1
-1
@@ -36,7 +36,7 @@ class parser(object):
|
||||
default: Optional[datetime],
|
||||
ignoretz: bool=...,
|
||||
tzinfos =...,
|
||||
) -> datetime: ...
|
||||
) -> datetime: ...
|
||||
|
||||
DEFAULTPARSER = ... # type: parser
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -117,8 +117,8 @@ class Serializer:
|
||||
|
||||
class TimedSerializer(Serializer):
|
||||
default_signer = ... # type: Callable[..., TimestampSigner]
|
||||
def loads(self, s: can_become_bytes, salt: Optional[can_become_bytes]=None, max_age: Optional[int]=None, return_timestamp=False) -> Any: ...
|
||||
def loads_unsafe(self, s: can_become_bytes, salt: Optional[can_become_bytes]=None, max_age: Optional[int]=None) -> Tuple[bool, Any]: ...
|
||||
def loads(self, s: can_become_bytes, salt: Optional[can_become_bytes]=None, max_age: Optional[int]=None, return_timestamp=False) -> Any: ...
|
||||
def loads_unsafe(self, s: can_become_bytes, salt: Optional[can_become_bytes]=None, max_age: Optional[int]=None) -> Tuple[bool, Any]: ...
|
||||
|
||||
class JSONWebSignatureSerializer(Serializer):
|
||||
jws_algorithms = ... # type: MutableMapping[str, SigningAlgorithm]
|
||||
|
||||
Vendored
+20
-15
@@ -50,13 +50,16 @@ class WorkingSet:
|
||||
|
||||
working_set = ... # type: WorkingSet
|
||||
|
||||
def require(*requirements: Union[str, Sequence[str]]) \
|
||||
-> Sequence[Distribution]: ...
|
||||
def require(
|
||||
*requirements: Union[str, Sequence[str]]
|
||||
) -> Sequence[Distribution]: ...
|
||||
def run_script(requires: str, script_name: str) -> None: ...
|
||||
def iter_entry_points(group: str, name: Optional[str] = ...) \
|
||||
-> Generator[EntryPoint, None, None]: ...
|
||||
def add_activation_listener(callback: Callable[[Distribution], None]) \
|
||||
-> None: ...
|
||||
def iter_entry_points(
|
||||
group: str, name: Optional[str] = ...
|
||||
) -> Generator[EntryPoint, None, None]: ...
|
||||
def add_activation_listener(
|
||||
callback: Callable[[Distribution], None]
|
||||
) -> None: ...
|
||||
|
||||
|
||||
class Environment:
|
||||
@@ -133,8 +136,9 @@ class EntryPoint:
|
||||
installer: Optional[_InstallerType] = ...) -> None: ...
|
||||
|
||||
|
||||
def find_distributions(path_item: str, only: bool = ...) \
|
||||
-> Generator[Distribution, None, None]: ...
|
||||
def find_distributions(
|
||||
path_item: str, only: bool = ...
|
||||
) -> Generator[Distribution, None, None]: ...
|
||||
def get_distribution(dist: Union[Requirement, str, Distribution]) -> Distribution: ...
|
||||
|
||||
class Distribution(IResourceProvider, IMetadataProvider):
|
||||
@@ -251,11 +255,11 @@ else:
|
||||
class _Importer(importlib.abc.InspectLoader): ...
|
||||
|
||||
def register_finder(importer_type: type,
|
||||
distribution_finder: _DistFinderType) -> None : ...
|
||||
def register_loader_type(loader_type: type,
|
||||
provider_factory: Callable[[types.ModuleType],
|
||||
IResourceProvider]) \
|
||||
-> None: ...
|
||||
distribution_finder: _DistFinderType) -> None: ...
|
||||
def register_loader_type(
|
||||
loader_type: type,
|
||||
provider_factory: Callable[[types.ModuleType], IResourceProvider]
|
||||
) -> None: ...
|
||||
def register_namespace_handler(importer_type: type,
|
||||
namespace_handler: _NSHandlerType) -> None: ...
|
||||
|
||||
@@ -287,8 +291,9 @@ class FileMetadata(EmptyProvider, IResourceProvider):
|
||||
|
||||
def parse_version(v: str) -> Tuple[str, ...]: ...
|
||||
def yield_lines(strs: _NestedStr) -> Generator[str, None, None]: ...
|
||||
def split_sections(strs: _NestedStr) \
|
||||
-> Generator[Tuple[Optional[str], str], None, None]: ...
|
||||
def split_sections(
|
||||
strs: _NestedStr
|
||||
) -> Generator[Tuple[Optional[str], str], None, None]: ...
|
||||
def safe_name(name: str) -> str: ...
|
||||
def safe_version(version: str) -> str: ...
|
||||
def safe_extra(extra: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user