| t | from typing import Any, List, Tuple, TypeVar, overload | t | from typing import Any, List, Tuple, TypeVar, overload |
| T = TypeVar('T') | | T = TypeVar('T') |
| | | |
| @overload | | @overload |
| def anymulsum(a: int, b: int, c: int) -> int: | | def anymulsum(a: int, b: int, c: int) -> int: |
| ... | | ... |
| | | |
| @overload | | @overload |
| def anymulsum(a: str, b: int, c: str) -> str: | | def anymulsum(a: str, b: int, c: str) -> str: |
| ... | | ... |
| | | |
| @overload | | @overload |
| def anymulsum(a: bytes, b: int, c: bytes) -> bytes: | | def anymulsum(a: bytes, b: int, c: bytes) -> bytes: |
| ... | | ... |
| | | |
| @overload | | @overload |
| def anymulsum(a: List[T], b: int, c: List[T]) -> List[T]: | | def anymulsum(a: List[T], b: int, c: List[T]) -> List[T]: |
| ... | | ... |
| | | |
| @overload | | @overload |
| def anymulsum(a: Tuple[T, ...], b: int, c: Tuple[T, ...]) -> Tuple[T, .. | | def anymulsum(a: Tuple[T, ...], b: int, c: Tuple[T, ...]) -> Tuple[T, .. |
| .]: | | .]: |
| ... | | ... |
| | | |
| def anymulsum(a: Any, b: int, c: Any) -> Any: | | def anymulsum(a: Any, b: int, c: Any) -> Any: |
| return a * b + c | | return a * b + c |