From 811af0b7d3111e8db4780d1bb50dfca476491661 Mon Sep 17 00:00:00 2001 From: Logan Kaser Date: Sat, 30 Mar 2024 15:28:19 -0700 Subject: [PATCH] Allow geometry_type to be None at the type level to match documentation (#500) --- geoalchemy2/types/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/geoalchemy2/types/__init__.py b/geoalchemy2/types/__init__.py index effa13a0..d60dbe64 100644 --- a/geoalchemy2/types/__init__.py +++ b/geoalchemy2/types/__init__.py @@ -114,14 +114,14 @@ class _GISType(UserDefinedType): def __init__( self, - geometry_type="GEOMETRY", + geometry_type: Optional[str] = "GEOMETRY", srid=-1, dimension=2, spatial_index=True, use_N_D_index=False, - use_typmod=None, - from_text=None, - name=None, + use_typmod: Optional[bool] = None, + from_text: Optional[str] = None, + name: Optional[str] = None, nullable=True, _spatial_index_reflected=None, ) -> None: