Skip to content

Commit

Permalink
fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Aug 19, 2024
1 parent 2c02a9b commit 60eeb11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions databasez/sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,10 @@ def extract_options(
options[param] = value.lower() in {"true", ""}
if "pool_size" in new_query_options:
assert "pool_size" not in options
options["pool_size"] = int(new_query_options["pool_size"])
options["pool_size"] = int(typing.cast(str, new_query_options["pool_size"]))
if "pool_recycle" in new_query_options:
assert "pool_recycle" not in options
options["pool_recycle"] = int(new_query_options["pool_recycle"])
options["pool_recycle"] = int(typing.cast(str, new_query_options["pool_recycle"]))
return database_url.replace(options=new_query_options), options

def json_serializer(self, inp: dict) -> str:
Expand Down

0 comments on commit 60eeb11

Please sign in to comment.