-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from rmartin16/next-version
qBittorrent v4.5.0 Support
- Loading branch information
Showing
43 changed files
with
1,995 additions
and
978 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,37 @@ | ||
import abc | ||
from collections import Mapping | ||
from collections import MutableMapping | ||
from abc import ABCMeta | ||
from typing import Any | ||
from typing import Dict | ||
from typing import Mapping | ||
from typing import MutableMapping | ||
from typing import Text | ||
from typing import TypeVar | ||
|
||
def merge(left, right): ... | ||
K = TypeVar("K") | ||
KOther = TypeVar("KOther") | ||
V = TypeVar("V") | ||
VOther = TypeVar("VOther") | ||
KwargsT = Any | ||
|
||
class Attr(Mapping, metaclass=abc.ABCMeta): | ||
def __call__(self, key): ... | ||
def __getattr__(self, key): ... | ||
def __add__(self, other): ... | ||
def __radd__(self, other): ... | ||
def merge( | ||
left: Mapping[K, V], | ||
right: Mapping[KOther, VOther], | ||
) -> Dict[K | KOther, V | VOther]: ... | ||
|
||
class MutableAttr(Attr, MutableMapping, metaclass=abc.ABCMeta): | ||
def __setattr__(self, key, value) -> None: ... | ||
def __delattr__(self, key, force: bool = ...) -> None: ... | ||
class Attr(Mapping[K, V], metaclass=ABCMeta): | ||
def __call__(self, key: K) -> V: ... | ||
def __getattr__(self, key: Text) -> V: ... | ||
def __add__( | ||
self, | ||
other: Mapping[KOther, VOther], | ||
) -> Attr[K | KOther, V | VOther]: ... | ||
def __radd__( | ||
self, | ||
other: Mapping[KOther, VOther], | ||
) -> Attr[K | KOther, V | VOther]: ... | ||
|
||
class AttrDict(dict, MutableAttr): | ||
def __init__(self, *args, **kwargs) -> None: ... | ||
class MutableAttr(Attr[K, V], MutableMapping[K, V], metaclass=ABCMeta): | ||
def __setattr__(self, key: Text, value: V) -> None: ... | ||
def __delattr__(self, key: Text, force: bool = ...) -> None: ... | ||
|
||
class AttrDict(Dict[K, V], MutableAttr[K, V]): | ||
def __init__(self, *args: Any, **kwargs: KwargsT) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from typing import IO | ||
from typing import Any | ||
from typing import Iterable | ||
from typing import Mapping | ||
from typing import Sequence | ||
from typing import Text | ||
from typing import Tuple | ||
from typing import Union | ||
|
||
from qbittorrentapi.definitions import Dictionary | ||
|
||
KwargsT = Any | ||
# Type to define JSON | ||
JsonValueT = Union[ | ||
None, | ||
int, | ||
Text, | ||
bool, | ||
Sequence[JsonValueT], | ||
Mapping[Text, JsonValueT], | ||
] | ||
JsonDictionaryT = Dictionary[Text, JsonValueT] | ||
# Type for inputs to build a Dictionary | ||
DictInputT = Mapping[Text, JsonValueT] | ||
# Type for inputs to build a List | ||
ListInputT = Iterable[Mapping[Text, JsonValueT]] | ||
# Type for `files` in requests.get()/post() | ||
FilesToSendT = Mapping[Text, IO[bytes] | Tuple[Text, IO[bytes]]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.