diff options
Diffstat (limited to '')
-rw-r--r-- | apt/auth.py | 1 | ||||
-rw-r--r-- | apt/cache.py | 6 | ||||
-rw-r--r-- | aptsources/_deb822.py | 6 |
3 files changed, 5 insertions, 8 deletions
diff --git a/apt/auth.py b/apt/auth.py index 6d50616..8ae5977 100644 --- a/apt/auth.py +++ b/apt/auth.py @@ -44,7 +44,6 @@ class AptKeyIDTooShortError(AptKeyError): class TrustedKey: - """Represents a trusted key.""" def __init__(self, name: str, keyid: str, date: str) -> None: diff --git a/apt/cache.py b/apt/cache.py index cf78026..5893c0e 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -118,9 +118,9 @@ class Cache: self._callbacks2: dict[ str, list[tuple[Callable[..., Any], tuple[Any, ...], dict[Any, Any]]] ] = {} # noqa - self._weakref: weakref.WeakValueDictionary[ - str, apt.Package - ] = weakref.WeakValueDictionary() # noqa + self._weakref: weakref.WeakValueDictionary[str, apt.Package] = ( + weakref.WeakValueDictionary() + ) # noqa self._weakversions: weakref.WeakSet[Version] = weakref.WeakSet() # noqa self._changes_count = -1 self._sorted_set: list[str] | None = None diff --git a/aptsources/_deb822.py b/aptsources/_deb822.py index d3b3a7c..28593e2 100644 --- a/aptsources/_deb822.py +++ b/aptsources/_deb822.py @@ -70,12 +70,10 @@ class Section: return bool(self.tags) @typing.overload - def get(self, key: str) -> str | None: - ... + def get(self, key: str) -> str | None: ... @typing.overload - def get(self, key: str, default: T) -> T | str: - ... + def get(self, key: str, default: T) -> T | str: ... def get(self, key: str, default: T | None = None) -> T | None | str: try: |