wmill 1.512.0__tar.gz → 1.513.1__tar.gz
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.
Potentially problematic release.
This version of wmill might be problematic. Click here for more details.
- {wmill-1.512.0 → wmill-1.513.1}/PKG-INFO +1 -1
- {wmill-1.512.0 → wmill-1.513.1}/pyproject.toml +1 -1
- {wmill-1.512.0 → wmill-1.513.1}/wmill/s3_reader.py +3 -3
- {wmill-1.512.0 → wmill-1.513.1}/wmill/s3_types.py +5 -2
- {wmill-1.512.0 → wmill-1.513.1}/README.md +0 -0
- {wmill-1.512.0 → wmill-1.513.1}/wmill/__init__.py +0 -0
- {wmill-1.512.0 → wmill-1.513.1}/wmill/client.py +0 -0
- {wmill-1.512.0 → wmill-1.513.1}/wmill/py.typed +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from io import BufferedReader, BytesIO
|
|
2
|
-
from
|
|
2
|
+
from typing import Optional, Union
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class S3BufferedReader(BufferedReader):
|
|
8
|
-
def __init__(self, workspace: str, windmill_client: httpx.Client, file_key: str, s3_resource_path: str
|
|
8
|
+
def __init__(self, workspace: str, windmill_client: httpx.Client, file_key: str, s3_resource_path: Optional[str], storage: Optional[str]):
|
|
9
9
|
params = {
|
|
10
10
|
"file_key": file_key,
|
|
11
11
|
}
|
|
@@ -61,7 +61,7 @@ class S3BufferedReader(BufferedReader):
|
|
|
61
61
|
self._context_manager.__exit__(*args)
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
def bytes_generator(buffered_reader: BufferedReader
|
|
64
|
+
def bytes_generator(buffered_reader: Union[BufferedReader, BytesIO]):
|
|
65
65
|
while True:
|
|
66
66
|
byte = buffered_reader.read(50 * 1024)
|
|
67
67
|
if not byte:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|