haiway 0.6.1__py3-none-any.whl → 0.6.2__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.
- haiway/state/validation.py +12 -0
- {haiway-0.6.1.dist-info → haiway-0.6.2.dist-info}/METADATA +1 -1
- {haiway-0.6.1.dist-info → haiway-0.6.2.dist-info}/RECORD +6 -6
- {haiway-0.6.1.dist-info → haiway-0.6.2.dist-info}/LICENSE +0 -0
- {haiway-0.6.1.dist-info → haiway-0.6.2.dist-info}/WHEEL +0 -0
- {haiway-0.6.1.dist-info → haiway-0.6.2.dist-info}/top_level.txt +0 -0
haiway/state/validation.py
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
from collections.abc import Callable, Mapping, Sequence, Set
|
2
|
+
from datetime import date, datetime, time, timedelta, timezone
|
2
3
|
from enum import Enum
|
4
|
+
from pathlib import Path
|
5
|
+
from re import Pattern
|
3
6
|
from types import MappingProxyType, NoneType, UnionType
|
4
7
|
from typing import Any, Literal, Protocol, Union
|
5
8
|
from uuid import UUID
|
@@ -282,6 +285,7 @@ VALIDATORS: Mapping[Any, Callable[[AttributeAnnotation], Callable[[Any], Any]]]
|
|
282
285
|
bool: _prepare_validator_of_type,
|
283
286
|
int: _prepare_validator_of_type,
|
284
287
|
float: _prepare_validator_of_type,
|
288
|
+
complex: _prepare_validator_of_type,
|
285
289
|
bytes: _prepare_validator_of_type,
|
286
290
|
str: _prepare_validator_of_type,
|
287
291
|
tuple: _prepare_validator_of_tuple,
|
@@ -290,7 +294,15 @@ VALIDATORS: Mapping[Any, Callable[[AttributeAnnotation], Callable[[Any], Any]]]
|
|
290
294
|
Set: _prepare_validator_of_set,
|
291
295
|
Sequence: _prepare_validator_of_sequence,
|
292
296
|
Mapping: _prepare_validator_of_mapping,
|
297
|
+
range: _prepare_validator_of_type,
|
293
298
|
UUID: _prepare_validator_of_type,
|
299
|
+
date: _prepare_validator_of_type,
|
300
|
+
datetime: _prepare_validator_of_type,
|
301
|
+
time: _prepare_validator_of_type,
|
302
|
+
timedelta: _prepare_validator_of_type,
|
303
|
+
timezone: _prepare_validator_of_type,
|
304
|
+
Path: _prepare_validator_of_type,
|
305
|
+
Pattern: _prepare_validator_of_type,
|
294
306
|
Union: _prepare_validator_of_union,
|
295
307
|
UnionType: _prepare_validator_of_union,
|
296
308
|
Callable: _prepare_validator_of_callable,
|
@@ -17,7 +17,7 @@ haiway/helpers/tracing.py,sha256=eQpkIoGSB51jRF8RcLaihvHX3VzJIRdyRxTx3I14Pzg,334
|
|
17
17
|
haiway/state/__init__.py,sha256=nPVHBySLuOdIL1VSIs-mo64s53xYHIbieELhw8mQgyc,204
|
18
18
|
haiway/state/attributes.py,sha256=gS4sEp50bDLAb3Y477BvagobvgMekUkiZZ64ZX6Avac,13613
|
19
19
|
haiway/state/structure.py,sha256=r8q2d3ro3C0kKYrdx9IE-bY2mKMVRwYC7d5Oeazj83Y,7289
|
20
|
-
haiway/state/validation.py,sha256=
|
20
|
+
haiway/state/validation.py,sha256=dC4m3a8HfC7c3slBpFbyYfIRnzl0QrmUSUb6MokAajY,8737
|
21
21
|
haiway/types/__init__.py,sha256=00Ulp2BxcIWm9vWXKQPodpFEwE8hpqj6OYgrNxelp5s,252
|
22
22
|
haiway/types/frozen.py,sha256=CZhFCXnWAKEhuWSfILxA8smfdpMd5Ku694ycfLh98R8,76
|
23
23
|
haiway/types/missing.py,sha256=JiXo5xdi7H-PbIJr0fuK5wpOuQZhjrDYUkMlfIFcsaE,1705
|
@@ -29,8 +29,8 @@ haiway/utils/logs.py,sha256=oDsc1ZdqKDjlTlctLbDcp9iX98Acr-1tdw-Pyg3DElo,1577
|
|
29
29
|
haiway/utils/mimic.py,sha256=BkVjTVP2TxxC8GChPGyDV6UXVwJmiRiSWeOYZNZFHxs,1828
|
30
30
|
haiway/utils/noop.py,sha256=qgbZlOKWY6_23Zs43OLukK2HagIQKRyR04zrFVm5rWI,344
|
31
31
|
haiway/utils/queue.py,sha256=oQ3GXCJ-PGNtMEr6EPdgqAvYZoj8lAa7Z2drBKBEoBM,2345
|
32
|
-
haiway-0.6.
|
33
|
-
haiway-0.6.
|
34
|
-
haiway-0.6.
|
35
|
-
haiway-0.6.
|
36
|
-
haiway-0.6.
|
32
|
+
haiway-0.6.2.dist-info/LICENSE,sha256=GehQEW_I1pkmxkkj3NEa7rCTQKYBn7vTPabpDYJlRuo,1063
|
33
|
+
haiway-0.6.2.dist-info/METADATA,sha256=pHxz4V97cT3so3DTs5fNhVrKjP7L2_63UsPX6GK7aSk,3898
|
34
|
+
haiway-0.6.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
35
|
+
haiway-0.6.2.dist-info/top_level.txt,sha256=_LdXVLzUzgkvAGQnQJj5kQfoFhpPW6EF4Kj9NapniLg,7
|
36
|
+
haiway-0.6.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|