Skip to content

Commit 6eac255

Browse files
committed
Remove Auths
1 parent 6a53852 commit 6eac255

File tree

4 files changed

+1
-28
lines changed

4 files changed

+1
-28
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
### Removed
1919
- Removing support for Python `3.7`.
20+
- Deprecated `requests_auth.Auths` class has been removed.
2021

2122
## [7.0.0] - 2023-04-27
2223
### Changed

requests_auth/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
HeaderApiKey,
44
QueryApiKey,
55
NTLM,
6-
Auths,
76
)
87
from requests_auth._oauth2.common import OAuth2
98
from requests_auth._oauth2.authorization_code import (
@@ -60,7 +59,6 @@
6059
"OAuth2ResourceOwnerPasswordCredentials",
6160
"OktaResourceOwnerPasswordCredentials",
6261
"NTLM",
63-
"Auths",
6462
"JsonTokenFileCache",
6563
"GrantNotProvided",
6664
"TimeoutOccurred",

requests_auth/_authentication.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import requests
44
import requests.auth
5-
import warnings
65

76

87
class SupportMultiAuth:
@@ -124,15 +123,6 @@ def __and__(self, other):
124123
return _MultiAuth(*self.authentication_modes, other)
125124

126125

127-
class Auths(_MultiAuth):
128-
def __init__(self, *authentication_modes):
129-
warnings.warn(
130-
"Auths class will be removed in the future. Use + instead.",
131-
DeprecationWarning,
132-
)
133-
super().__init__(*authentication_modes)
134-
135-
136126
def _add_parameters(initial_url: str, extra_parameters: dict) -> str:
137127
"""
138128
Add parameters to an URL and return the new URL.

tests/test_auths.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)