mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
* Bump mako from 1.1.6 to 1.2.0 Bumps [mako](https://github.com/sqlalchemy/mako) from 1.1.6 to 1.2.0. - [Release notes](https://github.com/sqlalchemy/mako/releases) - [Changelog](https://github.com/sqlalchemy/mako/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/mako/commits) --- updated-dependencies: - dependency-name: mako dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update mako==1.2.0 * Update MarkupSafe==2.1.1 * Add importlib-metadata==4.11.3 * Update requirements.txt Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
from ._compat import Protocol
|
|
from typing import Any, Dict, Iterator, List, TypeVar, Union
|
|
|
|
|
|
_T = TypeVar("_T")
|
|
|
|
|
|
class PackageMetadata(Protocol):
|
|
def __len__(self) -> int:
|
|
... # pragma: no cover
|
|
|
|
def __contains__(self, item: str) -> bool:
|
|
... # pragma: no cover
|
|
|
|
def __getitem__(self, key: str) -> str:
|
|
... # pragma: no cover
|
|
|
|
def __iter__(self) -> Iterator[str]:
|
|
... # pragma: no cover
|
|
|
|
def get_all(self, name: str, failobj: _T = ...) -> Union[List[Any], _T]:
|
|
"""
|
|
Return all values associated with a possibly multi-valued key.
|
|
"""
|
|
|
|
@property
|
|
def json(self) -> Dict[str, Union[str, List[str]]]:
|
|
"""
|
|
A JSON-compatible form of the metadata.
|
|
"""
|
|
|
|
|
|
class SimplePath(Protocol):
|
|
"""
|
|
A minimal subset of pathlib.Path required by PathDistribution.
|
|
"""
|
|
|
|
def joinpath(self) -> 'SimplePath':
|
|
... # pragma: no cover
|
|
|
|
def __truediv__(self) -> 'SimplePath':
|
|
... # pragma: no cover
|
|
|
|
def parent(self) -> 'SimplePath':
|
|
... # pragma: no cover
|
|
|
|
def read_text(self) -> str:
|
|
... # pragma: no cover
|