statica 1.0.1__tar.gz → 1.0.2__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.
- {statica-1.0.1/statica.egg-info → statica-1.0.2}/PKG-INFO +1 -1
- {statica-1.0.1 → statica-1.0.2}/pyproject.toml +1 -1
- {statica-1.0.1 → statica-1.0.2/statica.egg-info}/PKG-INFO +1 -1
- {statica-1.0.1 → statica-1.0.2}/LICENSE +0 -0
- {statica-1.0.1 → statica-1.0.2}/README.md +0 -0
- {statica-1.0.1 → statica-1.0.2}/setup.cfg +0 -0
- {statica-1.0.1 → statica-1.0.2}/statica/__init__.py +0 -0
- {statica-1.0.1 → statica-1.0.2}/statica/core.py +3 -3
- {statica-1.0.1 → statica-1.0.2}/statica/exceptions.py +0 -0
- {statica-1.0.1 → statica-1.0.2}/statica.egg-info/SOURCES.txt +0 -0
- {statica-1.0.1 → statica-1.0.2}/statica.egg-info/dependency_links.txt +0 -0
- {statica-1.0.1 → statica-1.0.2}/statica.egg-info/top_level.txt +0 -0
- {statica-1.0.1 → statica-1.0.2}/tests/test_statica.py +0 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -239,6 +239,9 @@ def Field( # noqa: N802
|
|
|
239
239
|
|
|
240
240
|
@dataclass_transform(kw_only_default=True)
|
|
241
241
|
class StaticaMeta(type):
|
|
242
|
+
type_error_class: type[Exception] = TypeValidationError
|
|
243
|
+
constraint_error_class: type[Exception] = ConstraintValidationError
|
|
244
|
+
|
|
242
245
|
def __new__(cls, name: str, bases: tuple, namespace: dict[str, Any]) -> type:
|
|
243
246
|
"""
|
|
244
247
|
Set up Field descriptors for each type-hinted attribute which does not have one
|
|
@@ -291,9 +294,6 @@ class StaticaMeta(type):
|
|
|
291
294
|
|
|
292
295
|
|
|
293
296
|
class Statica(metaclass=StaticaMeta):
|
|
294
|
-
type_error_class: type[Exception] = TypeValidationError
|
|
295
|
-
constraint_error_class: type[Exception] = ConstraintValidationError
|
|
296
|
-
|
|
297
297
|
@classmethod
|
|
298
298
|
def from_map(cls, mapping: Mapping[str, Any]) -> Self:
|
|
299
299
|
instance = cls(**mapping)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|