Skip to content

Commit

Permalink
Fix usages of implicit optional types
Browse files Browse the repository at this point in the history
  • Loading branch information
akx authored and johtso committed Jul 22, 2024
1 parent faac354 commit 7b1f266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions httpx_caching/_async/_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class AsyncCachingTransport(httpx.AsyncBaseTransport):
def __init__(
self,
transport: httpx.AsyncBaseTransport,
cache: AsyncDictCache = None,
cache: Optional[AsyncDictCache] = None,
cache_etags: bool = True,
heuristic: BaseHeuristic = None,
heuristic: Optional[BaseHeuristic] = None,
cacheable_methods: Iterable[str] = ("GET",),
cacheable_status_codes: Iterable[int] = (
200,
Expand Down
4 changes: 2 additions & 2 deletions httpx_caching/_sync/_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class SyncCachingTransport(httpx.BaseTransport):
def __init__(
self,
transport: httpx.BaseTransport,
cache: SyncDictCache = None,
cache: Optional[SyncDictCache] = None,
cache_etags: bool = True,
heuristic: BaseHeuristic = None,
heuristic: Optional[BaseHeuristic] = None,
cacheable_methods: Iterable[str] = ("GET",),
cacheable_status_codes: Iterable[int] = (
200,
Expand Down

0 comments on commit 7b1f266

Please sign in to comment.