X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a28e158bddaed6c690c13df01bfd18a6dd647485..e1dc4379e0cd100200ac53752442143ca4846fc5:/src/nominatim_db/typing.py diff --git a/src/nominatim_db/typing.py b/src/nominatim_db/typing.py index 6f0145c3..f26e1b05 100644 --- a/src/nominatim_db/typing.py +++ b/src/nominatim_db/typing.py @@ -11,9 +11,6 @@ Complex type definitions are moved here, to keep the source files readable. """ from typing import Any, Union, Mapping, TypeVar, Sequence, TYPE_CHECKING -# Generics variable names do not confirm to naming styles, ignore globally here. -# pylint: disable=invalid-name,abstract-method,multiple-statements -# pylint: disable=missing-class-docstring,useless-import-alias if TYPE_CHECKING: import os @@ -26,9 +23,11 @@ SysEnv = Mapping[str, str] T_ResultKey = TypeVar('T_ResultKey', int, str) + class DictCursorResult(Mapping[str, Any]): def __getitem__(self, x: Union[int, str]) -> Any: ... + DictCursorResults = Sequence[DictCursorResult] # The following typing features require typing_extensions to work