enforce-rules 3.2.22__tar.gz → 3.2.24__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: enforce-rules
3
- Version: 3.2.22
3
+ Version: 3.2.24
4
4
  Summary: Runtime rule validation for Python using dictionary-based constraints.
5
5
  Author: Jake Loepker, Microsoft Copilot (AI Assistant)
6
6
  License: BSD 3-Clause License
@@ -65,7 +65,7 @@ MAJOR: 3
65
65
 
66
66
  MINOR: 2
67
67
 
68
- PATCH: 22
68
+ PATCH: 24
69
69
 
70
70
  If you need to catch up, you can see the full version history in the [CHANGELOG](https://github.com/Loepker-James/enforce-rules/blob/main/CHANGELOG.md).
71
71
 
@@ -7,7 +7,7 @@ MAJOR: 3
7
7
 
8
8
  MINOR: 2
9
9
 
10
- PATCH: 22
10
+ PATCH: 24
11
11
 
12
12
  If you need to catch up, you can see the full version history in the [CHANGELOG](https://github.com/Loepker-James/enforce-rules/blob/main/CHANGELOG.md).
13
13
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "enforce-rules"
3
- version = "3.2.22"
3
+ version = "3.2.24"
4
4
  description = "Runtime rule validation for Python using dictionary-based constraints."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -41,6 +41,6 @@ requires = ["setuptools>=61.0", "wheel"]
41
41
  build-backend = "setuptools.build_meta"
42
42
 
43
43
  [tool.setuptools.package-data]
44
- enforce_rules = ["py.typed"]
44
+ enforce_rules = ["py.typed", "*.pyi"]
45
45
 
46
46
 
@@ -0,0 +1,2 @@
1
+ from . import enforce_rules
2
+ __all__ = ["enforce_rules"]
@@ -197,7 +197,7 @@ class ValidateDict(TypedDict, total=False):
197
197
  element_max: Number
198
198
  regex: str
199
199
  regex_flags: object
200
- must_be_true: Callable[[Any], bool]
200
+ must_be_true: Callable[[T], bool]
201
201
  before_date: datetime
202
202
  after_date: datetime
203
203
  piece_color: bool
@@ -0,0 +1,6 @@
1
+ from typing import TypeVar, Dict
2
+
3
+ T = TypeVar("T")
4
+
5
+ def validate(value: T, rules: Dict[str, object]) -> T: ...
6
+ def is_valid(value: T, rules: Dict[str, object]) -> T: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: enforce-rules
3
- Version: 3.2.22
3
+ Version: 3.2.24
4
4
  Summary: Runtime rule validation for Python using dictionary-based constraints.
5
5
  Author: Jake Loepker, Microsoft Copilot (AI Assistant)
6
6
  License: BSD 3-Clause License
@@ -65,7 +65,7 @@ MAJOR: 3
65
65
 
66
66
  MINOR: 2
67
67
 
68
- PATCH: 22
68
+ PATCH: 24
69
69
 
70
70
  If you need to catch up, you can see the full version history in the [CHANGELOG](https://github.com/Loepker-James/enforce-rules/blob/main/CHANGELOG.md).
71
71
 
@@ -3,6 +3,7 @@ README.md
3
3
  pyproject.toml
4
4
  src/enforce_rules/__init__.py
5
5
  src/enforce_rules/enforce_rules.py
6
+ src/enforce_rules/enforce_rules.pyi
6
7
  src/enforce_rules/py.typed
7
8
  src/enforce_rules.egg-info/PKG-INFO
8
9
  src/enforce_rules.egg-info/SOURCES.txt
@@ -1 +0,0 @@
1
- from . import enforce_rules
File without changes
File without changes