Skip to content

Commit

Permalink
fix(base): Make headers optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroWave022 committed May 5, 2023
1 parent a70c2ba commit fcd5b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yr_weather/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class BaseClient:
"""A base client other clients inherit."""

def __init__(
self, headers: Optional[Dict[str, str]], use_cache: bool = True
self, headers: Optional[Dict[str, str]] = None, use_cache: bool = True
) -> None:
if headers is not None and not isinstance(headers, dict):
raise TypeError("The 'headers' parameter must be of type 'dict' or None.")
Expand Down

0 comments on commit fcd5b8c

Please sign in to comment.