Skip to content

Commit

Permalink
Fixes #209 - Make conn_max_age optional[int] type
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseymour committed Feb 14, 2023
1 parent acd8d30 commit 789d5ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dj_database_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
class DBConfig(TypedDict, total=False):
ATOMIC_REQUESTS: bool
AUTOCOMMIT: bool
CONN_MAX_AGE: int
CONN_MAX_AGE: Optional[int]
CONN_HEALTH_CHECKS: bool
DISABLE_SERVER_SIDE_CURSORS: bool
ENGINE: str
Expand All @@ -55,7 +55,7 @@ def config(
env: str = DEFAULT_ENV,
default: Optional[str] = None,
engine: Optional[str] = None,
conn_max_age: int = 0,
conn_max_age: Optional[int] = 0,
conn_health_checks: bool = False,
ssl_require: bool = False,
test_options: Optional[Dict] = None,
Expand All @@ -79,7 +79,7 @@ def config(
def parse(
url: str,
engine: Optional[str] = None,
conn_max_age: int = 0,
conn_max_age: Optional[int] = 0,
conn_health_checks: bool = False,
ssl_require: bool = False,
test_options: Optional[dict] = None,
Expand Down

0 comments on commit 789d5ef

Please sign in to comment.