(self, auth: AuthTypes | None)
| 443 | return params |
| 444 | |
| 445 | def _build_auth(self, auth: AuthTypes | None) -> Auth | None: |
| 446 | if auth is None: |
| 447 | return None |
| 448 | elif isinstance(auth, tuple): |
| 449 | return BasicAuth(username=auth[0], password=auth[1]) |
| 450 | elif isinstance(auth, Auth): |
| 451 | return auth |
| 452 | elif callable(auth): |
| 453 | return FunctionAuth(func=auth) |
| 454 | else: |
| 455 | raise TypeError(f&class="cm">#x27;Invalid class="st">"auth" argument: {auth!r}') |
| 456 | |
| 457 | def _build_request_auth( |
| 458 | self, |
no test coverage detected