pyzotero 1.6.8__py3-none-any.whl → 1.6.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.6.8'
16
- __version_tuple__ = version_tuple = (1, 6, 8)
15
+ __version__ = version = '1.6.9'
16
+ __version_tuple__ = version_tuple = (1, 6, 9)
pyzotero/filetransport.py CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  import asyncio
34
34
  from pathlib import Path
35
- from typing import Optional, Tuple
35
+ from typing import Optional
36
36
 
37
37
  import httpx
38
38
  from httpx import (
@@ -65,7 +65,7 @@ httpx.URL.is_absolute_url = property(is_absolute_url) # type: ignore
65
65
 
66
66
 
67
67
  class FileTransport(AsyncBaseTransport, BaseTransport):
68
- def _handle(self, request: Request) -> Tuple[Optional[int], httpx.Headers]:
68
+ def _handle(self, request: Request) -> tuple[Optional[int], httpx.Headers]:
69
69
  if request.url.host and request.url.host != "localhost":
70
70
  raise NotImplementedError("Only local paths are allowed")
71
71
  if request.method in {"PUT", "DELETE"}:
@@ -148,4 +148,4 @@ class AsyncClient(_AsyncClient):
148
148
  self._mounts.update({URLPattern(protocol): transport})
149
149
 
150
150
 
151
- __all__ = ["FileTransport", "AsyncClient", "Client"]
151
+ __all__ = ["AsyncClient", "Client", "FileTransport"]