@@ -130,14 +130,6 @@ def __init__(
130130 def qs (self ) -> Querystring :
131131 return Querystring (array_format = "comma" )
132132
133- @property
134- @override
135- def auth_headers (self ) -> dict [str , str ]:
136- token = self .token
137- if token is None :
138- return {}
139- return {"Authorization" : f"Bearer { token } " }
140-
141133 @property
142134 @override
143135 def default_headers (self ) -> dict [str , str | Omit ]:
@@ -147,17 +139,6 @@ def default_headers(self) -> dict[str, str | Omit]:
147139 ** self ._custom_headers ,
148140 }
149141
150- @override
151- def _validate_headers (self , headers : Headers , custom_headers : Headers ) -> None :
152- if self .token and headers .get ("Authorization" ):
153- return
154- if isinstance (custom_headers .get ("Authorization" ), Omit ):
155- return
156-
157- raise TypeError (
158- '"Could not resolve authentication method. Expected the token to be set. Or for the `Authorization` headers to be explicitly omitted"'
159- )
160-
161142 def copy (
162143 self ,
163144 * ,
@@ -898,14 +879,6 @@ def __init__(
898879 def qs (self ) -> Querystring :
899880 return Querystring (array_format = "comma" )
900881
901- @property
902- @override
903- def auth_headers (self ) -> dict [str , str ]:
904- token = self .token
905- if token is None :
906- return {}
907- return {"Authorization" : f"Bearer { token } " }
908-
909882 @property
910883 @override
911884 def default_headers (self ) -> dict [str , str | Omit ]:
@@ -915,17 +888,6 @@ def default_headers(self) -> dict[str, str | Omit]:
915888 ** self ._custom_headers ,
916889 }
917890
918- @override
919- def _validate_headers (self , headers : Headers , custom_headers : Headers ) -> None :
920- if self .token and headers .get ("Authorization" ):
921- return
922- if isinstance (custom_headers .get ("Authorization" ), Omit ):
923- return
924-
925- raise TypeError (
926- '"Could not resolve authentication method. Expected the token to be set. Or for the `Authorization` headers to be explicitly omitted"'
927- )
928-
929891 def copy (
930892 self ,
931893 * ,
0 commit comments