From fcd5b8c78b38628e809ccbb8aa0eff2390415841 Mon Sep 17 00:00:00 2001 From: ZeroWave022 <36341766+ZeroWave022@users.noreply.github.com> Date: Fri, 5 May 2023 22:39:19 +0200 Subject: [PATCH] fix(base): Make headers optional --- yr_weather/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yr_weather/base.py b/yr_weather/base.py index e0fb588..b0e35ec 100644 --- a/yr_weather/base.py +++ b/yr_weather/base.py @@ -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.")