abcreg 0.1.0__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.
- abcreg-0.1.0/.gitignore +10 -0
- abcreg-0.1.0/.python-version +1 -0
- abcreg-0.1.0/LICENSE +21 -0
- abcreg-0.1.0/PKG-INFO +53 -0
- abcreg-0.1.0/README.md +44 -0
- abcreg-0.1.0/abcreg/__init__.py +3 -0
- abcreg-0.1.0/abcreg/_annotations.py +6 -0
- abcreg-0.1.0/abcreg/annotated_abc.py +64 -0
- abcreg-0.1.0/main.py +6 -0
- abcreg-0.1.0/pyproject.toml +25 -0
- abcreg-0.1.0/tests/test_annotated_abc.py +122 -0
- abcreg-0.1.0/uv.lock +108 -0
abcreg-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14
|
abcreg-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Will Bowers
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
abcreg-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: abcreg
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.13
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# ABCReg
|
|
11
|
+
|
|
12
|
+
ABCReg adds `AnnotatedABC` and `AnnotatedABCMeta`, which provide additional interface checking at registration time to ensure that registered virtual and ordinary subclasses are valid.
|
|
13
|
+
|
|
14
|
+
Use ABCReg if you are designing a plugin API or any other interface that might be implemented by an end user.
|
|
15
|
+
|
|
16
|
+
## Defining the Interface
|
|
17
|
+
|
|
18
|
+
Use `AnnotatedABC` just like an ordinary `ABC`. Make sure to mark your API methods as abstract and provide type hints:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
from abc import abstractmethod
|
|
22
|
+
from abcreg import AnnotatedABC
|
|
23
|
+
|
|
24
|
+
class Queryable(AnnotatedABC):
|
|
25
|
+
@abstractmethod
|
|
26
|
+
def query(self, **kwargs) -> str: ...
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
We recommend you use virtual inheritance:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
@Queryable.register(VirtualQueryProvider)
|
|
33
|
+
class VirtualQueryProvider:
|
|
34
|
+
def query(self, **kwargs) -> str:
|
|
35
|
+
return "query result"
|
|
36
|
+
|
|
37
|
+
assert issubclass(VirtualQueryProvider, Queryable)
|
|
38
|
+
assert isinstance(VirtualQueryProvider(), Queryable)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
But, regular inheritance will also work:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
class QueryProvider(Queryable):
|
|
45
|
+
def query(self, **kwargs) -> str:
|
|
46
|
+
return "query result"
|
|
47
|
+
|
|
48
|
+
assert issubclass(QueryProvider, Queryable)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Requirements and Usage
|
|
52
|
+
|
|
53
|
+
Requries Python `3.10+`. With UV, require with `uv add abcreg`.
|
abcreg-0.1.0/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# ABCReg
|
|
2
|
+
|
|
3
|
+
ABCReg adds `AnnotatedABC` and `AnnotatedABCMeta`, which provide additional interface checking at registration time to ensure that registered virtual and ordinary subclasses are valid.
|
|
4
|
+
|
|
5
|
+
Use ABCReg if you are designing a plugin API or any other interface that might be implemented by an end user.
|
|
6
|
+
|
|
7
|
+
## Defining the Interface
|
|
8
|
+
|
|
9
|
+
Use `AnnotatedABC` just like an ordinary `ABC`. Make sure to mark your API methods as abstract and provide type hints:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
from abc import abstractmethod
|
|
13
|
+
from abcreg import AnnotatedABC
|
|
14
|
+
|
|
15
|
+
class Queryable(AnnotatedABC):
|
|
16
|
+
@abstractmethod
|
|
17
|
+
def query(self, **kwargs) -> str: ...
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
We recommend you use virtual inheritance:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
@Queryable.register(VirtualQueryProvider)
|
|
24
|
+
class VirtualQueryProvider:
|
|
25
|
+
def query(self, **kwargs) -> str:
|
|
26
|
+
return "query result"
|
|
27
|
+
|
|
28
|
+
assert issubclass(VirtualQueryProvider, Queryable)
|
|
29
|
+
assert isinstance(VirtualQueryProvider(), Queryable)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
But, regular inheritance will also work:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
class QueryProvider(Queryable):
|
|
36
|
+
def query(self, **kwargs) -> str:
|
|
37
|
+
return "query result"
|
|
38
|
+
|
|
39
|
+
assert issubclass(QueryProvider, Queryable)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Requirements and Usage
|
|
43
|
+
|
|
44
|
+
Requries Python `3.10+`. With UV, require with `uv add abcreg`.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
from abc import ABC, ABCMeta
|
|
5
|
+
from collections.abc import Callable
|
|
6
|
+
from typing import get_type_hints
|
|
7
|
+
|
|
8
|
+
__all__ = ["AnnotatedABC", "AnnotatedABCMeta"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _normalize_annotations(fn: Callable[..., object]) -> dict[str, object]:
|
|
12
|
+
module_name = getattr(fn, "__module__", None)
|
|
13
|
+
module = sys.modules.get(module_name) if module_name is not None else None
|
|
14
|
+
globalns = vars(module) if module is not None else {}
|
|
15
|
+
return get_type_hints(fn, globalns=globalns, localns=globalns)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def _has_fn(
|
|
19
|
+
impl: type,
|
|
20
|
+
abc: type,
|
|
21
|
+
name: str,
|
|
22
|
+
expected: dict[str, object],
|
|
23
|
+
) -> bool:
|
|
24
|
+
skip = set(abc.__mro__)
|
|
25
|
+
for base in impl.__mro__:
|
|
26
|
+
if base in skip:
|
|
27
|
+
continue
|
|
28
|
+
for key, value in base.__dict__.items():
|
|
29
|
+
if key == name and _normalize_annotations(value) == expected:
|
|
30
|
+
return True
|
|
31
|
+
return False
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class AnnotatedABCMeta(ABCMeta):
|
|
35
|
+
def register(cls, subclass: type) -> type:
|
|
36
|
+
cls._validate_implementation(subclass)
|
|
37
|
+
return super().register(subclass)
|
|
38
|
+
|
|
39
|
+
def _validate_implementation(cls, impl: type) -> None:
|
|
40
|
+
for name, expected in cls._abstract_annotations().items():
|
|
41
|
+
if not _has_fn(impl, cls, name, expected):
|
|
42
|
+
msg = (
|
|
43
|
+
f"{impl!r} does not fully implement {cls.__name__!r}: "
|
|
44
|
+
f"missing or mismatched {name!r}"
|
|
45
|
+
)
|
|
46
|
+
raise TypeError(msg)
|
|
47
|
+
|
|
48
|
+
def _abstract_annotations(cls) -> dict[str, dict[str, object]]:
|
|
49
|
+
methods: dict[str, dict[str, object]] = {}
|
|
50
|
+
for base in cls.__mro__:
|
|
51
|
+
if not isinstance(base, AnnotatedABCMeta):
|
|
52
|
+
continue
|
|
53
|
+
for name, value in base.__dict__.items():
|
|
54
|
+
if getattr(value, "__isabstractmethod__", False):
|
|
55
|
+
methods[name] = _normalize_annotations(value)
|
|
56
|
+
return methods
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class AnnotatedABC(ABC, metaclass=AnnotatedABCMeta):
|
|
60
|
+
def __init_subclass__(cls, **kwargs: object) -> None:
|
|
61
|
+
super().__init_subclass__(**kwargs)
|
|
62
|
+
for base in cls.__bases__:
|
|
63
|
+
if isinstance(base, AnnotatedABCMeta):
|
|
64
|
+
base._validate_implementation(cls)
|
abcreg-0.1.0/main.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "abcreg"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
requires-python = ">=3.13"
|
|
9
|
+
dependencies = []
|
|
10
|
+
|
|
11
|
+
[dependency-groups]
|
|
12
|
+
dev = [
|
|
13
|
+
"pytest>=8.0",
|
|
14
|
+
"ruff>=0.15.18",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
[build-system]
|
|
18
|
+
requires = ["hatchling"]
|
|
19
|
+
build-backend = "hatchling.build"
|
|
20
|
+
|
|
21
|
+
[tool.hatch.build.targets.wheel]
|
|
22
|
+
packages = ["abcreg"]
|
|
23
|
+
|
|
24
|
+
[tool.pytest.ini_options]
|
|
25
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import importlib
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
import pytest
|
|
7
|
+
from abc import abstractmethod
|
|
8
|
+
|
|
9
|
+
from abcreg import AnnotatedABC
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Queryable(AnnotatedABC):
|
|
13
|
+
@abstractmethod
|
|
14
|
+
def query(self, **kwargs) -> str: ...
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class BaseQueryable(AnnotatedABC):
|
|
18
|
+
@abstractmethod
|
|
19
|
+
def query(self, **kwargs) -> str: ...
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ExtendedQueryable(BaseQueryable):
|
|
23
|
+
@abstractmethod
|
|
24
|
+
def query(self, **kwargs) -> str: ...
|
|
25
|
+
|
|
26
|
+
@abstractmethod
|
|
27
|
+
def fetch(self) -> int: ...
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def test_direct_subclass_matching_annotations() -> None:
|
|
31
|
+
class Good(Queryable):
|
|
32
|
+
def query(self, **kwargs) -> str:
|
|
33
|
+
return "ok"
|
|
34
|
+
|
|
35
|
+
assert issubclass(Good, Queryable)
|
|
36
|
+
assert Good().query() == "ok"
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def test_direct_subclass_missing_method() -> None:
|
|
40
|
+
with pytest.raises(TypeError, match="missing or mismatched 'query'"):
|
|
41
|
+
|
|
42
|
+
class Bad(Queryable):
|
|
43
|
+
pass
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def test_direct_subclass_wrong_return_annotation() -> None:
|
|
47
|
+
with pytest.raises(TypeError, match="missing or mismatched 'query'"):
|
|
48
|
+
|
|
49
|
+
class Bad(Queryable):
|
|
50
|
+
def query(self, **kwargs) -> int:
|
|
51
|
+
return 1
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def test_virtual_register_compliant() -> None:
|
|
55
|
+
class Legacy:
|
|
56
|
+
def query(self, **kwargs) -> str:
|
|
57
|
+
return "legacy"
|
|
58
|
+
|
|
59
|
+
Queryable.register(Legacy)
|
|
60
|
+
assert issubclass(Legacy, Queryable)
|
|
61
|
+
assert isinstance(Legacy(), Queryable)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def test_virtual_register_non_compliant() -> None:
|
|
65
|
+
class Bad:
|
|
66
|
+
def query(self, **kwargs) -> int:
|
|
67
|
+
return 1
|
|
68
|
+
|
|
69
|
+
with pytest.raises(TypeError, match="missing or mismatched 'query'"):
|
|
70
|
+
Queryable.register(Bad)
|
|
71
|
+
assert not issubclass(Bad, Queryable)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def test_inherited_abstract_methods() -> None:
|
|
75
|
+
class Good(ExtendedQueryable):
|
|
76
|
+
def query(self, **kwargs) -> str:
|
|
77
|
+
return "ok"
|
|
78
|
+
|
|
79
|
+
def fetch(self) -> int:
|
|
80
|
+
return 42
|
|
81
|
+
|
|
82
|
+
assert Good().fetch() == 42
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def test_inherited_abstract_methods_missing() -> None:
|
|
86
|
+
with pytest.raises(TypeError, match="missing or mismatched 'fetch'"):
|
|
87
|
+
|
|
88
|
+
class Bad(ExtendedQueryable):
|
|
89
|
+
def query(self, **kwargs) -> str:
|
|
90
|
+
return "ok"
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def test_abstract_intermediate_abc() -> None:
|
|
94
|
+
class Partial(Queryable):
|
|
95
|
+
@abstractmethod
|
|
96
|
+
def query(self, **kwargs) -> str: ...
|
|
97
|
+
|
|
98
|
+
assert issubclass(Partial, Queryable)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def test_get_annotations_from_inspect_on_python_before_3_14() -> None:
|
|
102
|
+
if sys.version_info >= (3, 14):
|
|
103
|
+
pytest.skip("get_annotations lives in annotationlib on Python 3.14+")
|
|
104
|
+
|
|
105
|
+
import inspect
|
|
106
|
+
|
|
107
|
+
from abcreg import _annotations
|
|
108
|
+
|
|
109
|
+
importlib.reload(_annotations)
|
|
110
|
+
assert _annotations.get_annotations is inspect.get_annotations
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def test_get_annotations_from_annotationlib_on_python_3_14() -> None:
|
|
114
|
+
if sys.version_info < (3, 14):
|
|
115
|
+
pytest.skip("annotationlib.get_annotations is only available on Python 3.14+")
|
|
116
|
+
|
|
117
|
+
import annotationlib
|
|
118
|
+
|
|
119
|
+
from abcreg import _annotations
|
|
120
|
+
|
|
121
|
+
importlib.reload(_annotations)
|
|
122
|
+
assert _annotations.get_annotations is annotationlib.get_annotations
|
abcreg-0.1.0/uv.lock
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
version = 1
|
|
2
|
+
revision = 3
|
|
3
|
+
requires-python = ">=3.13"
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "abcreg"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
source = { editable = "." }
|
|
9
|
+
|
|
10
|
+
[package.dev-dependencies]
|
|
11
|
+
dev = [
|
|
12
|
+
{ name = "pytest" },
|
|
13
|
+
{ name = "ruff" },
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
[package.metadata]
|
|
17
|
+
|
|
18
|
+
[package.metadata.requires-dev]
|
|
19
|
+
dev = [
|
|
20
|
+
{ name = "pytest", specifier = ">=8.0" },
|
|
21
|
+
{ name = "ruff", specifier = ">=0.15.18" },
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[[package]]
|
|
25
|
+
name = "colorama"
|
|
26
|
+
version = "0.4.6"
|
|
27
|
+
source = { registry = "https://pypi.org/simple" }
|
|
28
|
+
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
|
|
29
|
+
wheels = [
|
|
30
|
+
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[[package]]
|
|
34
|
+
name = "iniconfig"
|
|
35
|
+
version = "2.3.0"
|
|
36
|
+
source = { registry = "https://pypi.org/simple" }
|
|
37
|
+
sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" }
|
|
38
|
+
wheels = [
|
|
39
|
+
{ url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" },
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[[package]]
|
|
43
|
+
name = "packaging"
|
|
44
|
+
version = "26.2"
|
|
45
|
+
source = { registry = "https://pypi.org/simple" }
|
|
46
|
+
sdist = { url = "https://files.pythonhosted.org/packages/d7/f1/e7a6dd94a8d4a5626c03e4e99c87f241ba9e350cd9e6d75123f992427270/packaging-26.2.tar.gz", hash = "sha256:ff452ff5a3e828ce110190feff1178bb1f2ea2281fa2075aadb987c2fb221661", size = 228134, upload-time = "2026-04-24T20:15:23.917Z" }
|
|
47
|
+
wheels = [
|
|
48
|
+
{ url = "https://files.pythonhosted.org/packages/df/b2/87e62e8c3e2f4b32e5fe99e0b86d576da1312593b39f47d8ceef365e95ed/packaging-26.2-py3-none-any.whl", hash = "sha256:5fc45236b9446107ff2415ce77c807cee2862cb6fac22b8a73826d0693b0980e", size = 100195, upload-time = "2026-04-24T20:15:22.081Z" },
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
[[package]]
|
|
52
|
+
name = "pluggy"
|
|
53
|
+
version = "1.6.0"
|
|
54
|
+
source = { registry = "https://pypi.org/simple" }
|
|
55
|
+
sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" }
|
|
56
|
+
wheels = [
|
|
57
|
+
{ url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "pygments"
|
|
62
|
+
version = "2.20.0"
|
|
63
|
+
source = { registry = "https://pypi.org/simple" }
|
|
64
|
+
sdist = { url = "https://files.pythonhosted.org/packages/c3/b2/bc9c9196916376152d655522fdcebac55e66de6603a76a02bca1b6414f6c/pygments-2.20.0.tar.gz", hash = "sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f", size = 4955991, upload-time = "2026-03-29T13:29:33.898Z" }
|
|
65
|
+
wheels = [
|
|
66
|
+
{ url = "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", hash = "sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", size = 1231151, upload-time = "2026-03-29T13:29:30.038Z" },
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
[[package]]
|
|
70
|
+
name = "pytest"
|
|
71
|
+
version = "9.1.1"
|
|
72
|
+
source = { registry = "https://pypi.org/simple" }
|
|
73
|
+
dependencies = [
|
|
74
|
+
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
|
75
|
+
{ name = "iniconfig" },
|
|
76
|
+
{ name = "packaging" },
|
|
77
|
+
{ name = "pluggy" },
|
|
78
|
+
{ name = "pygments" },
|
|
79
|
+
]
|
|
80
|
+
sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" }
|
|
81
|
+
wheels = [
|
|
82
|
+
{ url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" },
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
[[package]]
|
|
86
|
+
name = "ruff"
|
|
87
|
+
version = "0.15.18"
|
|
88
|
+
source = { registry = "https://pypi.org/simple" }
|
|
89
|
+
sdist = { url = "https://files.pythonhosted.org/packages/74/98/1295ad5a5aa9bc85bdcdfa5d82fe7b49c61af5657df4f227637ff9de0da6/ruff-0.15.18.tar.gz", hash = "sha256:2698a964c70e8bf402dcb99c8810472d270d141e7aa8c4e13599fd52033a2f33", size = 4761437, upload-time = "2026-06-18T18:25:39.224Z" }
|
|
90
|
+
wheels = [
|
|
91
|
+
{ url = "https://files.pythonhosted.org/packages/b9/d0/686e984941269621e2be72612d5c1e461f8f7b38415a2a7d7a81c8ae6715/ruff-0.15.18-py3-none-linux_armv6l.whl", hash = "sha256:8b6850172348c8381b8b3084c5915a4393c2373b9b54cd5b5e1ea15812bc10df", size = 10887308, upload-time = "2026-06-18T18:25:03.062Z" },
|
|
92
|
+
{ url = "https://files.pythonhosted.org/packages/ed/21/bc4123e3f5515ee99f8ce1eb93a14a0628fe4d1678663cd08f933ac16931/ruff-0.15.18-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:3fccc153a85417dcd976883160cacce486997b0a0058dd18f54b8aaaac7d1ce2", size = 11281305, upload-time = "2026-06-18T18:25:30.026Z" },
|
|
93
|
+
{ url = "https://files.pythonhosted.org/packages/51/93/4769464c25cf7ab2acb3c7dda9cad3d867eb41c59565b3e2a9d17249c90c/ruff-0.15.18-py3-none-macosx_11_0_arm64.whl", hash = "sha256:08d4c86a68f2c3ec2c9d56380a71fb4a4f65373055cbb8caabd645e9102f38d4", size = 10641215, upload-time = "2026-06-18T18:25:15.802Z" },
|
|
94
|
+
{ url = "https://files.pythonhosted.org/packages/6c/42/56926d17120db2c208d76bf60a1a019644dd9e91dc27f0f95c9caddb1366/ruff-0.15.18-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:37e5108745c2c0705da916d7d4de533ddf547051ef45f62888c31bae73f66318", size = 10957224, upload-time = "2026-06-18T18:25:36.955Z" },
|
|
95
|
+
{ url = "https://files.pythonhosted.org/packages/22/4f/d43fab8d8189afde803103022d000a8ef9f230616d436d52a8b2b8d63b50/ruff-0.15.18-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:56949a6ce8b3abde54c0bcb22cebfe57e8771cadc84b407ae8b8eaf67ebdcd43", size = 10699024, upload-time = "2026-06-18T18:25:05.707Z" },
|
|
96
|
+
{ url = "https://files.pythonhosted.org/packages/63/42/1e3e4c68bd408b9768cf3e439acbe2c78245225faef253f7028a0cdb63e0/ruff-0.15.18-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:01a754cd6a1b630d3f97e33eb452cf7a98040482318e870f8bc52a5a30e62657", size = 11491458, upload-time = "2026-06-18T18:25:20.275Z" },
|
|
97
|
+
{ url = "https://files.pythonhosted.org/packages/20/77/47a3484bea8521e14a203d98c389c5c97846675e4f02734672da4a69b52a/ruff-0.15.18-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6ba7a07e03a44dbf10bb086ee06705b173625014ec99f73a7e6836a5e5590a0c", size = 12383752, upload-time = "2026-06-18T18:25:22.535Z" },
|
|
98
|
+
{ url = "https://files.pythonhosted.org/packages/0a/ca/054159590787023d83b658a1a1819c4c8910114e7015069340b71c0961cb/ruff-0.15.18-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5a2c40a41a4cadbcf5897b548ab29dfe248b20c540961c0247d98a3973c70403", size = 11577923, upload-time = "2026-06-18T18:25:10.702Z" },
|
|
99
|
+
{ url = "https://files.pythonhosted.org/packages/6d/ff/d353d6b7bbd73cc0ec37f4463d7540e45e894338abdd9964eee0de332708/ruff-0.15.18-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5f0480ce690cbb6c4db6e5d08f19fce98e10ba131a8b60c1bcdac42771e3ae2d", size = 11583925, upload-time = "2026-06-18T18:25:32.391Z" },
|
|
100
|
+
{ url = "https://files.pythonhosted.org/packages/c1/4a/891f89b9c296ed3e5f3ece1a5629badc989d9a8fdaa30431aaf4774bc1c2/ruff-0.15.18-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:2330215f1f393fa8733f55edce04fcf94c36a2c460fcde31f78cc84e4951e9b1", size = 11582834, upload-time = "2026-06-18T18:25:27.309Z" },
|
|
101
|
+
{ url = "https://files.pythonhosted.org/packages/32/a3/ed9e370154bf85de360b93c03026157f02d4943b2d01ff4945f4429f8e8a/ruff-0.15.18-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:a6aa6a3d979e48ae617578183674bf264fbe7d0114a796a26bd678d67963c7ff", size = 10927328, upload-time = "2026-06-18T18:25:34.676Z" },
|
|
102
|
+
{ url = "https://files.pythonhosted.org/packages/f5/d1/5cf5909329fedb5d39d555ee818ba5cf4638e1a301b89785d34f2905bfcb/ruff-0.15.18-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:a81beadbbff2c9c245561ae3f77b16709d87f35eec650d0501679239d3449b22", size = 10693187, upload-time = "2026-06-18T18:25:08.245Z" },
|
|
103
|
+
{ url = "https://files.pythonhosted.org/packages/fd/44/ff6c635cf2c4f4e7b618b6640da057376baa36014695487d88aed4794268/ruff-0.15.18-py3-none-musllinux_1_2_i686.whl", hash = "sha256:2186d9e940ae332ab293623a75b5f4fe49565f449954d50a72a046683aa6b809", size = 11208721, upload-time = "2026-06-18T18:25:41.327Z" },
|
|
104
|
+
{ url = "https://files.pythonhosted.org/packages/88/d9/5baa2a30861adfb7022cf33c1e35b2fc18085b08c16f83eff4c7b99a5f48/ruff-0.15.18-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:5c2abf140438032bc77b2284a6c9944ecd8a19e5f1c7b52b1b8e4a0a80d19a7a", size = 11678599, upload-time = "2026-06-18T18:25:13.607Z" },
|
|
105
|
+
{ url = "https://files.pythonhosted.org/packages/c3/1a/0725a7cfdc32ff769efb96ee782bec882e16448c5d9e3be947ec4c04ce27/ruff-0.15.18-py3-none-win32.whl", hash = "sha256:02299e6e9fa5b297a3f6d5d10d7bcd655c925b028bb8b9d4588214549c6b9ec4", size = 10901903, upload-time = "2026-06-18T18:25:24.755Z" },
|
|
106
|
+
{ url = "https://files.pythonhosted.org/packages/f3/51/805d9f6fb7970505c3504794a5ec350f605361b807fef4dcf214ebd35e72/ruff-0.15.18-py3-none-win_amd64.whl", hash = "sha256:dac80dc8d26b2257dbefabed62f5d255c3937b4ccb122da1fc634794fa3578b3", size = 12041189, upload-time = "2026-06-18T18:25:17.915Z" },
|
|
107
|
+
{ url = "https://files.pythonhosted.org/packages/29/4c/67bb45e41609eb4726f1bfeb59e083cf91d14c696d4bd14c234a980be93d/ruff-0.15.18-py3-none-win_arm64.whl", hash = "sha256:b2c9257fcbd4a3e5b977a1904e6facca016bafe2edc17df24db67cfaee03b4e4", size = 11329958, upload-time = "2026-06-18T18:25:43.686Z" },
|
|
108
|
+
]
|