@@ -456,7 +456,7 @@ def _geom(
456456
457457 return g
458458
459- def _where (
459+ def _where ( # noqa: C901
460460 self ,
461461 ids : Optional [List [str ]] = None ,
462462 datetime : Optional [List [str ]] = None ,
@@ -577,9 +577,9 @@ def _datetime_filter_to_sql(self, interval: List[str], dt_name: str):
577577
578578 else :
579579 start = (
580- parse_rfc3339 (interval [0 ]) if not interval [0 ] in [".." , "" ] else None
580+ parse_rfc3339 (interval [0 ]) if interval [0 ] not in [".." , "" ] else None
581581 )
582- end = parse_rfc3339 (interval [1 ]) if not interval [1 ] in [".." , "" ] else None
582+ end = parse_rfc3339 (interval [1 ]) if interval [1 ] not in [".." , "" ] else None
583583
584584 if start is None and end is None :
585585 raise InvalidDatetime (
@@ -731,9 +731,11 @@ async def features(
731731 bbox_only : Optional [bool ] = None ,
732732 simplify : Optional [float ] = None ,
733733 geom_as_wkt : bool = False ,
734- function_parameters : Dict [str , str ] = {} ,
734+ function_parameters : Optional [ Dict [str , str ]] = None ,
735735 ) -> Tuple [FeatureCollection , int ]:
736736 """Build and run Pg query."""
737+ function_parameters = function_parameters or {}
738+
737739 if geom and geom .lower () != "none" and not self .get_geometry_column (geom ):
738740 raise InvalidGeometryColumnName (f"Invalid Geometry Column: { geom } ." )
739741
@@ -872,7 +874,7 @@ def queryables(self) -> Dict:
872874
873875async def get_collection_index ( # noqa: C901
874876 db_pool : asyncpg .BuildPgPool ,
875- schemas : Optional [List [str ]] = [ "public" ] ,
877+ schemas : Optional [List [str ]] = None ,
876878 tables : Optional [List [str ]] = None ,
877879 exclude_tables : Optional [List [str ]] = None ,
878880 exclude_table_schemas : Optional [List [str ]] = None ,
@@ -882,6 +884,7 @@ async def get_collection_index( # noqa: C901
882884 spatial : bool = True ,
883885) -> Database :
884886 """Fetch Table and Functions index."""
887+ schemas = schemas or ["public" ]
885888
886889 query = """
887890 SELECT pg_temp.tipg_catalog(
0 commit comments