From 2bdee459b29e777203c72c849d4dce3e132299c2 Mon Sep 17 00:00:00 2001 From: Adrien Berchet Date: Tue, 2 Apr 2024 11:10:52 +0200 Subject: [PATCH] Chore: Fix type hints on stubs --- geoalchemy2/_functions_helpers.py | 4 ++-- geoalchemy2/functions.pyi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/geoalchemy2/_functions_helpers.py b/geoalchemy2/_functions_helpers.py index 755a49ac..e74e3eb9 100644 --- a/geoalchemy2/_functions_helpers.py +++ b/geoalchemy2/_functions_helpers.py @@ -60,8 +60,8 @@ class TableRowElement(ColumnElement): """The cache is disabled for this class.""" def __init__(self, selectable: bool) -> None: ... - @property - def _from_objects(self) -> List[bool]: ... # type: ignore[override] + @property # type: ignore[override] + def _from_objects(self) -> List[bool]: ... ''' stub_file_parts = [header] diff --git a/geoalchemy2/functions.pyi b/geoalchemy2/functions.pyi index fb0da0cf..53cf64f5 100644 --- a/geoalchemy2/functions.pyi +++ b/geoalchemy2/functions.pyi @@ -13,8 +13,8 @@ class TableRowElement(ColumnElement): """The cache is disabled for this class.""" def __init__(self, selectable: bool) -> None: ... - @property - def _from_objects(self) -> List[bool]: ... # type: ignore[override] + @property # type: ignore[override] + def _from_objects(self) -> List[bool]: ... class ST_AsGeoJSON(GenericFunction): """