Skip to content

Commit

Permalink
Chore: Fix type hints on stubs (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet authored Apr 23, 2024
1 parent da53834 commit 34ea3a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions geoalchemy2/_functions_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
4 changes: 2 additions & 2 deletions geoalchemy2/functions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 34ea3a7

Please sign in to comment.