flet 0.70.0.dev6301__py3-none-any.whl → 0.70.0.dev6326__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.

Potentially problematic release.


This version of flet might be problematic. Click here for more details.

@@ -16,13 +16,10 @@ from flet.utils.object_model import get_param_count
16
16
  logger = logging.getLogger("flet")
17
17
  controls_log = logging.getLogger("flet_controls")
18
18
 
19
- # Try importing `dataclass_transform()` for Python 3.11+, else use a no-op function
20
- if sys.version_info >= (3, 11): # Only use it for Python 3.11+
19
+ if sys.version_info >= (3, 11):
21
20
  from typing import dataclass_transform
22
21
  else:
23
-
24
- def dataclass_transform(): # No-op decorator for older Python versions
25
- return lambda x: x
22
+ from typing_extensions import dataclass_transform
26
23
 
27
24
 
28
25
  if TYPE_CHECKING:
@@ -236,9 +233,9 @@ class BaseControl:
236
233
  def update(self) -> None:
237
234
  if hasattr(self, "_frozen"):
238
235
  raise Exception("Frozen control cannot be updated.")
239
- assert self.page, (
240
- f"{self.__class__.__qualname__} Control must be added to the page first"
241
- )
236
+ assert (
237
+ self.page
238
+ ), f"{self.__class__.__qualname__} Control must be added to the page first"
242
239
  self.page.update(self)
243
240
 
244
241
  async def _invoke_method(
@@ -247,9 +244,9 @@ class BaseControl:
247
244
  arguments: Optional[dict[str, Any]] = None,
248
245
  timeout: Optional[float] = None,
249
246
  ) -> Any:
250
- assert self.page, (
251
- f"{self.__class__.__qualname__} Control must be added to the page first"
252
- )
247
+ assert (
248
+ self.page
249
+ ), f"{self.__class__.__qualname__} Control must be added to the page first"
253
250
 
254
251
  return await self.page.session.invoke_method(
255
252
  self._i, method_name, arguments, timeout
flet/version.py CHANGED
@@ -10,7 +10,7 @@ from flet.utils import is_mobile, is_windows, which
10
10
  DEFAULT_VERSION = "0.1.0"
11
11
 
12
12
  # will be replaced by CI
13
- version = "0.70.0.dev6301"
13
+ version = "0.70.0.dev6326"
14
14
 
15
15
 
16
16
  def update_version():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet
3
- Version: 0.70.0.dev6301
3
+ Version: 0.70.0.dev6326
4
4
  Summary: Flet for Python - easily build interactive multi-platform apps in Python
5
5
  Author-email: "Appveyor Systems Inc." <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -16,6 +16,7 @@ Requires-Dist: oauthlib>=3.2.2; platform_system != "Pyodide"
16
16
  Requires-Dist: httpx>=0.28.1; platform_system != "Pyodide"
17
17
  Requires-Dist: repath>=0.9.0
18
18
  Requires-Dist: msgpack>=1.1.0
19
+ Requires-Dist: typing-extensions; python_version < "3.11"
19
20
  Provides-Extra: all
20
21
  Requires-Dist: flet-cli; extra == "all"
21
22
  Requires-Dist: flet-desktop; extra == "all"
@@ -1,7 +1,7 @@
1
1
  flet/__init__.py,sha256=rj0DuM9ZNrzkM-TpQ35iIspYLzsrxOCwkVxOHRX6oiU,26152
2
2
  flet/app.py,sha256=HSws0Zm4ZO0-Hp2P9h7xirCVnRkKCVXhuekyAXT_9Fo,11883
3
3
  flet/cli.py,sha256=IUM25fY_sqMtl0hlQGhlMQaBb1oNyO0VZeeBgRodhuA,204
4
- flet/version.py,sha256=3LidJpQBwyb1TuzvaMEsNdaZFwLamwz_IL92rCcEKEs,2512
4
+ flet/version.py,sha256=sWUWPbQY9PByaOtgEaglY6Zw3B-YcubEBnx4-GmQaWo,2512
5
5
  flet/auth/__init__.py,sha256=eDqmi0Ki8Resd198S7XxgYa2R14wnNqIXnYhBLPl8fQ,289
6
6
  flet/auth/authorization.py,sha256=hP_36RiRPtSwmK_Yp6MMzAjQdDxbBiEcZ2yFNqyNiRs,357
7
7
  flet/auth/authorization_service.py,sha256=6N2LvisSt7KI_VgfyCH0OaJ6jTcmXCkAldN1yYlakzQ,6410
@@ -34,7 +34,7 @@ flet/controls/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  flet/controls/adaptive_control.py,sha256=Pw0E7z0IlNSe05cQTi5BLElLF3OnlVLzwfvtOQpsRr8,1594
35
35
  flet/controls/alignment.py,sha256=re4jnpuqNPPWs55bf8RB_c9llqcuGhZcCjdNutx2N5M,3257
36
36
  flet/controls/animation.py,sha256=C3Sxqte4S225m3UvlQOm-DGxd1WJaqfdLpA6e10B_BM,3763
37
- flet/controls/base_control.py,sha256=ckxIWpcMoJ-d0DCjQONWOVZ5shCIfJx4wZ_miaJQywA,10711
37
+ flet/controls/base_control.py,sha256=Pn9b6ez81iFuWZw_rRsEHQw7CEkZVL8XHChORXgenPc,10545
38
38
  flet/controls/base_page.py,sha256=SuuoK-XHqsTmOQZXYz84DxOibE9_43sKZulalSjIxYI,17927
39
39
  flet/controls/blur.py,sha256=taMH4qtILyAFn1qNsgBGRV3z0GSH6V7VKPV3ZSBhOL4,602
40
40
  flet/controls/border.py,sha256=O-Pt3pydzR8lZYDi83caDOhhfWurPMJHANeRyFZDIKg,8931
@@ -246,8 +246,8 @@ flet/utils/platform_utils.py,sha256=U4cqV3EPi5QNYjbhfZmtk41-KMtI_P7KvVdnZzMOgJA,
246
246
  flet/utils/slugify.py,sha256=e-lsoDc2_dk5jQnySaHCU83AA4O6mguEgCEdk2smW2Y,466
247
247
  flet/utils/strings.py,sha256=R63_i7PdSAStCDPJ-O_WHBt3H02JQ14GSbnjLIpPTUc,178
248
248
  flet/utils/vector.py,sha256=pYZzjldBWCZbSeSkZ8VmujwcZC7VBWk1NLBPA-2th3U,3207
249
- flet-0.70.0.dev6301.dist-info/METADATA,sha256=MvQ164VTORzFbpf8Dn1fBYlyO6ZyN5XWYAtyLdV6fRs,6051
250
- flet-0.70.0.dev6301.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
251
- flet-0.70.0.dev6301.dist-info/entry_points.txt,sha256=mbBhHNUnLHiDqR36WeJrfLJU0Y0y087-M4wagQmaQ_Y,39
252
- flet-0.70.0.dev6301.dist-info/top_level.txt,sha256=HbLrSnWJX2jZOEZAI14cGzW8Q5BbOGTtE-7knD5FDh0,5
253
- flet-0.70.0.dev6301.dist-info/RECORD,,
249
+ flet-0.70.0.dev6326.dist-info/METADATA,sha256=hqlcYv0ZbExcuDKzYQGHdrYWdWI8N-gWoO-OQWBmJEY,6109
250
+ flet-0.70.0.dev6326.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
251
+ flet-0.70.0.dev6326.dist-info/entry_points.txt,sha256=mbBhHNUnLHiDqR36WeJrfLJU0Y0y087-M4wagQmaQ_Y,39
252
+ flet-0.70.0.dev6326.dist-info/top_level.txt,sha256=HbLrSnWJX2jZOEZAI14cGzW8Q5BbOGTtE-7knD5FDh0,5
253
+ flet-0.70.0.dev6326.dist-info/RECORD,,