From 34ea3a7f4185250e3c8c7df0fcd0d3c208134c52 Mon Sep 17 00:00:00 2001 From: Adrien Berchet Date: Tue, 23 Apr 2024 13:58:44 +0200 Subject: [PATCH] Chore: Fix type hints on stubs (#504) --- 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): """