TypeDAL 3.1.3__py3-none-any.whl → 3.1.4__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 TypeDAL might be problematic. Click here for more details.

typedal/__about__.py CHANGED
@@ -5,4 +5,4 @@ This file contains the Version info for this package.
5
5
  # SPDX-FileCopyrightText: 2023-present Robin van der Noord <robinvandernoord@gmail.com>
6
6
  #
7
7
  # SPDX-License-Identifier: MIT
8
- __version__ = "3.1.3"
8
+ __version__ = "3.1.4"
typedal/core.py CHANGED
@@ -12,6 +12,7 @@ import types
12
12
  import typing
13
13
  import warnings
14
14
  from collections import defaultdict
15
+ from copy import copy
15
16
  from decimal import Decimal
16
17
  from pathlib import Path
17
18
  from typing import Any, Optional
@@ -494,9 +495,15 @@ class TypeDAL(pydal.DAL): # type: ignore
494
495
  # now it's only used to extract relationships from the object.
495
496
  # other properties of the class (incl methods) should not be touched
496
497
 
497
- for key in typedfields.keys() - full_dict.keys():
498
- # typed fields that don't haven't been added to the object yet
499
- setattr(cls, key, typedfields[key])
498
+ # for key in typedfields.keys() - full_dict.keys():
499
+ # # typed fields that don't haven't been added to the object yet
500
+ # setattr(cls, key, typedfields[key])
501
+
502
+ for key, field in typedfields.items():
503
+ # clone every property so it can be re-used across mixins:
504
+ clone = copy(field)
505
+ setattr(cls, key, clone)
506
+ typedfields[key] = clone
500
507
 
501
508
  # start with base classes and overwrite with current class:
502
509
  relationships = filter_out(full_dict, Relationship) | relationships | filter_out(other_kwargs, Relationship)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TypeDAL
3
- Version: 3.1.3
3
+ Version: 3.1.4
4
4
  Summary: Typing support for PyDAL
5
5
  Project-URL: Documentation, https://typedal.readthedocs.io/
6
6
  Project-URL: Issues, https://github.com/trialandsuccess/TypeDAL/issues
@@ -1,9 +1,9 @@
1
- typedal/__about__.py,sha256=FPLg8MPyTL3dGKuHjCokjQHVtArf9AvoAIoHSH66dBE,206
1
+ typedal/__about__.py,sha256=rg1ktSg7m5s-wVEyJZGLexDBUkbBQvnRft88RSv-4tY,206
2
2
  typedal/__init__.py,sha256=QQpLiVl9w9hm2LBxey49Y_tCF_VB2bScVaS_mCjYy54,366
3
3
  typedal/caching.py,sha256=8UABVAhOlBpL96ykmqhxLaFYOe-XeAh7JoGh57OkxP8,11818
4
4
  typedal/cli.py,sha256=3tge8B-YjgjMC6425-RMczmWvpOTfWV5QYPXRY23IWA,18200
5
5
  typedal/config.py,sha256=jS1K0_1F5rwJtvwTZ-qR29ZCX7WlyORGEIFvfSnusko,11645
6
- typedal/core.py,sha256=zkjuSmfkDAagahiOE43__dpd3cYNwqlIXnX-qGz1VDQ,95613
6
+ typedal/core.py,sha256=tocfC9KDnuOoPgUTpBhFo2WGTupS5Y0esyFSTcANwLc,95866
7
7
  typedal/fields.py,sha256=z2PD9vLWqBR_zXtiY0DthqTG4AeF3yxKoeuVfGXnSdg,5197
8
8
  typedal/for_py4web.py,sha256=d07b8hL_PvNDUS26Z5fDH2OxWb-IETBuAFPSzrRwm04,1285
9
9
  typedal/for_web2py.py,sha256=4RHgzGXgKIO_BYB-7adC5e35u52rX-p1t4tPEz-NK24,1867
@@ -13,7 +13,7 @@ typedal/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  typedal/types.py,sha256=1kGkNX6vfGg6ln84AG558C4Zx5ACRz-emrUTnuy-rRY,3410
14
14
  typedal/web2py_py4web_shared.py,sha256=VK9T8P5UwVLvfNBsY4q79ANcABv-jX76YKADt1Zz_co,1539
15
15
  typedal/serializers/as_json.py,sha256=ffo152W-sARYXym4BzwX709rrO2-QwKk2KunWY8RNl4,2229
16
- typedal-3.1.3.dist-info/METADATA,sha256=aq0W19f8YqtTEWrpYPYeaE66YbqVxnqogL4pRTFkAqU,9270
17
- typedal-3.1.3.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
18
- typedal-3.1.3.dist-info/entry_points.txt,sha256=m1wqcc_10rHWPdlQ71zEkmJDADUAnZtn7Jac_6mbyUc,44
19
- typedal-3.1.3.dist-info/RECORD,,
16
+ typedal-3.1.4.dist-info/METADATA,sha256=yh1PzCqEG-XLvhPRLgD33O6fW-GAspkIKobbj7qNA5I,9270
17
+ typedal-3.1.4.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
18
+ typedal-3.1.4.dist-info/entry_points.txt,sha256=m1wqcc_10rHWPdlQ71zEkmJDADUAnZtn7Jac_6mbyUc,44
19
+ typedal-3.1.4.dist-info/RECORD,,