Skip to content

Commit

Permalink
aas.backend: Support urllib3 version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
JGrothoff committed Sep 5, 2024
1 parent 3c74154 commit c162949
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions basyx/aas/backend/couchdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""
import threading
import weakref
from typing import List, Dict, Any, Optional, Iterator, Iterable, Union, Tuple
from typing import List, Dict, Any, Optional, Iterator, Iterable, Union, Tuple, MutableMapping
import urllib.parse
import urllib.request
import urllib.error
Expand Down Expand Up @@ -108,7 +108,7 @@ def _parse_source(cls, source: str) -> str:

@classmethod
def do_request(cls, url: str, method: str = "GET", additional_headers: Dict[str, str] = {},
body: Optional[bytes] = None) -> Dict[str, Any]:
body: Optional[bytes] = None) -> MutableMapping[str, Any]:
"""
Perform an HTTP(S) request to the CouchDBServer, parse the result and handle errors
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ lxml>=4.2,<5
python-dateutil>=2.8,<3.0
types-python-dateutil
pyecma376-2>=0.2.4
urllib3>=1.26,<2.0
urllib3>=1.26,<3
Werkzeug>=3.0.3,<4
schemathesis~=3.7
hypothesis~=6.13
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
install_requires=[
'python-dateutil>=2.8,<3',
'lxml>=4.2,<5',
'urllib3>=1.26,<2.0',
'urllib3>=1.26,<3',
'pyecma376-2>=0.2.4',
'Werkzeug>=3.0.3,<4'
]
Expand Down

0 comments on commit c162949

Please sign in to comment.