Skip to content

Commit

Permalink
Add return type for session close (#305)
Browse files Browse the repository at this point in the history
Co-authored-by: Tadas Gedgaudas <tg@infrahub.io>
  • Loading branch information
tadasgedgaudas and tadasg6 committed Apr 23, 2024
1 parent 0260de1 commit 9e68666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions curl_cffi/requests/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def __enter__(self):
def __exit__(self, *args):
self.close()

def close(self):
def close(self) -> None:
"""Close the session."""
self._closed = True
self.curl.close()
Expand Down Expand Up @@ -985,7 +985,7 @@ async def __aexit__(self, *args):
await self.close()
return None

async def close(self):
async def close(self) -> None:
"""Close the session."""
await self.acurl.close()
self._closed = True
Expand Down

0 comments on commit 9e68666

Please sign in to comment.