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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wmill
3
- Version: 1.512.0
3
+ Version: 1.513.1
4
4
  Summary: A client library for accessing Windmill server wrapping the Windmill client API
5
5
  Home-page: https://windmill.dev
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wmill"
3
- version = "1.512.0"
3
+ version = "1.513.1"
4
4
  description = "A client library for accessing Windmill server wrapping the Windmill client API"
5
5
  license = "Apache-2.0"
6
6
  homepage = "https://windmill.dev"
@@ -1,11 +1,11 @@
1
1
  from io import BufferedReader, BytesIO
2
- from json import JSONDecodeError
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 | None, storage: str | None):
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 | BytesIO):
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:
@@ -1,7 +1,10 @@
1
+ from typing import Optional
2
+
3
+
1
4
  class S3Object(dict):
2
5
  s3: str
3
- storage: str | None
4
- presigned: str | None
6
+ storage: Optional[str]
7
+ presigned: Optional[str]
5
8
 
6
9
  def __getattr__(self, attr):
7
10
  return self[attr]
File without changes
File without changes
File without changes
File without changes