osbot-utils 2.79.0__py3-none-any.whl → 2.80.0__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.
- osbot_utils/type_safe/type_safe_core/methods/Type_Safe__Method.py +4 -2
- osbot_utils/version +1 -1
- {osbot_utils-2.79.0.dist-info → osbot_utils-2.80.0.dist-info}/METADATA +2 -2
- {osbot_utils-2.79.0.dist-info → osbot_utils-2.80.0.dist-info}/RECORD +6 -6
- {osbot_utils-2.79.0.dist-info → osbot_utils-2.80.0.dist-info}/LICENSE +0 -0
- {osbot_utils-2.79.0.dist-info → osbot_utils-2.80.0.dist-info}/WHEEL +0 -0
@@ -114,10 +114,12 @@ class Type_Safe__Method:
|
|
114
114
|
for i, item in enumerate(param_value): # Validate each dict in list
|
115
115
|
if not isinstance(item, dict): # Check item is a dict
|
116
116
|
raise ValueError(f"List item at index {i} expected dict but got {type(item)}") # Raise error if not dict
|
117
|
+
if key_type is Any and value_type is Any: # Skip validation if both are Any
|
118
|
+
continue # No type checking needed
|
117
119
|
for k, v in item.items(): # Validate dict contents
|
118
|
-
if not isinstance(k, key_type):
|
120
|
+
if key_type is not Any and not isinstance(k, key_type): # Check key type if not Any
|
119
121
|
raise ValueError(f"Dict key '{k}' at index {i} expected type {key_type}, but got {type(k)}") # Raise error for invalid key
|
120
|
-
if not isinstance(v, value_type):
|
122
|
+
if value_type is not Any and not isinstance(v, value_type): # Check value type if not Any
|
121
123
|
raise ValueError(f"Dict value for key '{k}' at index {i} expected type {value_type}, but got {type(v)}") # Raise error for invalid value
|
122
124
|
elif item_origin is collections.abc.Callable: # Handle Callable[[...], ...] items
|
123
125
|
for i, item in enumerate(param_value): # Validate each callable in list
|
osbot_utils/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
v2.
|
1
|
+
v2.80.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: osbot_utils
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.80.0
|
4
4
|
Summary: OWASP Security Bot - Utils
|
5
5
|
License: MIT
|
6
6
|
Author: Dinis Cruz
|
@@ -21,7 +21,7 @@ Description-Content-Type: text/markdown
|
|
21
21
|
|
22
22
|
# OSBot-Utils
|
23
23
|
|
24
|
-

|
25
25
|

|
26
26
|

|
27
27
|

|
@@ -417,7 +417,7 @@ osbot_utils/type_safe/type_safe_core/collections/Type_Safe__Tuple.py,sha256=Kx7C
|
|
417
417
|
osbot_utils/type_safe/type_safe_core/collections/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
418
418
|
osbot_utils/type_safe/type_safe_core/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
419
419
|
osbot_utils/type_safe/type_safe_core/decorators/type_safe.py,sha256=wOTMvZBl5hWMz-HuIRZpPBGN0oSbXWd9wH5xxZkfLlA,1796
|
420
|
-
osbot_utils/type_safe/type_safe_core/methods/Type_Safe__Method.py,sha256
|
420
|
+
osbot_utils/type_safe/type_safe_core/methods/Type_Safe__Method.py,sha256=J5hKfNdF2CPiaiC2Sb1qVd_VwfZcavo77DQ48NOUS50,19030
|
421
421
|
osbot_utils/type_safe/type_safe_core/methods/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
422
422
|
osbot_utils/type_safe/type_safe_core/methods/type_safe_property.py,sha256=DcJkOIs6swJtkglsZVKLyFSczCGSJISOVwAmvjCOQvo,1425
|
423
423
|
osbot_utils/type_safe/type_safe_core/shared/Type_Safe__Annotations.py,sha256=kabSiRPYPjpMBJxfjDB5AFRTx-hX17tOznZAd_qQID4,1147
|
@@ -469,8 +469,8 @@ osbot_utils/utils/Toml.py,sha256=grjWkVPIMVkawJ499FVIJKxQp8FJ2wcsd0Z3YIR4drM,114
|
|
469
469
|
osbot_utils/utils/Version.py,sha256=Ww6ChwTxqp1QAcxOnztkTicShlcx6fbNsWX5xausHrg,422
|
470
470
|
osbot_utils/utils/Zip.py,sha256=mG42lgTY0tnm14T3P1-DSAIZKkTiYoO3odZ1aOUdc1I,14394
|
471
471
|
osbot_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
472
|
-
osbot_utils/version,sha256=
|
473
|
-
osbot_utils-2.
|
474
|
-
osbot_utils-2.
|
475
|
-
osbot_utils-2.
|
476
|
-
osbot_utils-2.
|
472
|
+
osbot_utils/version,sha256=OvhuEsV_06ng4M340O91vaNZ7flMDhiGOxhvz2bAo34,8
|
473
|
+
osbot_utils-2.80.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
474
|
+
osbot_utils-2.80.0.dist-info/METADATA,sha256=7S4iF13GsJEefH8A1UQ82gfoVP83vDdw_JLCoJWCMWQ,7918
|
475
|
+
osbot_utils-2.80.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
476
|
+
osbot_utils-2.80.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|