Skip to content

Commit

Permalink
Update cg/cli/base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Stranneheim <[email protected]>
  • Loading branch information
seallard and henrikstranneheim authored Oct 27, 2023
1 parent 85f7447 commit 9708daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cg/cli/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

def teardown_session():
"""Ensure that the session is closed and all resources are released to the connection pool."""
registry: Optional[scoped_session] = get_scoped_session_registry()
registry: scoped_session | None = get_scoped_session_registry()
if registry:
registry.remove()

Expand Down

0 comments on commit 9708daf

Please sign in to comment.