mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
* Use pre-commit checks in CI * Fix all issues flagged by mypy * Update travis.yml to reflect testenv changes * Update docs to use tox lint
44 lines
1.3 KiB
Python
44 lines
1.3 KiB
Python
from typing import Any, Dict, List, Optional, Tuple, Type, Union
|
|
|
|
class BadAttributeException:
|
|
def __init__(
|
|
self,
|
|
actualValue: Any,
|
|
expectedType: Union[
|
|
Dict[Tuple[Type[str], Type[str]], Type[dict]],
|
|
Tuple[Type[str], Type[str]],
|
|
List[Type[dict]],
|
|
List[Tuple[Type[str], Type[str]]],
|
|
],
|
|
transformationException: Optional[ValueError],
|
|
) -> None: ...
|
|
@property
|
|
def actual_value(self) -> Any: ...
|
|
@property
|
|
def expected_type(
|
|
self,
|
|
) -> Union[
|
|
List[Type[dict]],
|
|
Tuple[Type[str], Type[str]],
|
|
Dict[Tuple[Type[str], Type[str]], Type[dict]],
|
|
List[Tuple[Type[str], Type[str]]],
|
|
]: ...
|
|
@property
|
|
def transformation_exception(self) -> Optional[ValueError]: ...
|
|
|
|
class GithubException:
|
|
def __init__(self, status: Union[int, str], data: Any,) -> None: ...
|
|
def __str__(self) -> str: ...
|
|
@property
|
|
def data(self) -> Dict[str, Union[str, List[str], List[Dict[str, str]]]]: ...
|
|
@property
|
|
def status(self) -> int: ...
|
|
|
|
class IncompletableObject:
|
|
def __init__(self, status: Union[int, str], data: Any,) -> None: ...
|
|
def __str__(self) -> str: ...
|
|
@property
|
|
def data(self) -> Dict[str, Union[str, List[str], List[Dict[str, str]]]]: ...
|
|
@property
|
|
def status(self) -> int: ...
|