All Ruff Errors Removed

The 2 last issues are Optional methods, removed manually
This commit is contained in:
killiandesse 2025-11-17 18:24:10 +01:00
parent 865aae1b13
commit 97a478c380
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ BOOLEAN_STATES = {'1': True, 'yes': True, 'true': True, 'on': True,
'0': False, 'no': False, 'false': False, 'off': False}
_Completions = Optional[Iterable[tuple[str, str]]]
_Completions: TypeAlias = Optional[Iterable[tuple[str, str]]]
_StrUnset: TypeAlias = str | usertypes.Unset
_UnsetNone: TypeAlias = None | usertypes.Unset
_StrUnsetNone: TypeAlias = str | _UnsetNone

View File

@ -9,7 +9,7 @@ import collections
import itertools
import operator
from typing import (
TYPE_CHECKING, Any, Optional)
TYPE_CHECKING, Any, Optional, TypeAlias)
from collections.abc import Iterator, Sequence, MutableMapping
from qutebrowser.qt.core import QUrl
@ -69,7 +69,7 @@ class Values:
_domain_map: A mapping from hostnames to all associated ScopedValues.
"""
_VmapKeyType = Optional[urlmatch.UrlPattern]
_VmapKeyType: TypeAlias = Optional[urlmatch.UrlPattern]
def __init__(self,
opt: 'configdata.Option',