literalenum 0.2.0__tar.gz → 0.3.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.
- {literalenum-0.2.0 → literalenum-0.3.0}/PKG-INFO +1 -3
- {literalenum-0.2.0 → literalenum-0.3.0}/README.md +0 -2
- {literalenum-0.2.0 → literalenum-0.3.0}/pyproject.toml +1 -1
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/stubgen.py +58 -18
- {literalenum-0.2.0 → literalenum-0.3.0}/src/typing_literalenum.py +56 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/tests/test_typing_literalenum.py +97 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/.github/workflows/publish.yml +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/.gitignore +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/LICENSE +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/LITMUS.md +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/PEP.md +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/TYPING_DISCUSSION.md +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/__init__.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/__init__.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/annotated.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/bare_class.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/base_model.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/click_choice.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/django_choices.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/enum.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/graphene_enum.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/int_enum.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/json_schema.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/literal.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/random_choice.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/regex.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/sqlalchemy_enum.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/str_enum.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/strawberry_enum.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/literal_enum.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/mypy_plugin.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/py.typed +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/samples/__init__.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/samples/http.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/samples/http.pyi +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/__init__.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/a_strenum.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/b_str_enum.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/c_enum.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/d_literal.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/e_literal_plus_namespace.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/f_literal_hack.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/g_custom_type.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/h_custom_literal_namespace.py +0 -0
- {literalenum-0.2.0 → literalenum-0.3.0}/tests/test_literalenum.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: literalenum
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: A Python typing construct that provides namespaced literal constants with advanced typing features.
|
|
5
5
|
Project-URL: Homepage, https://github.com/modularizer/literalenum
|
|
6
6
|
Project-URL: Repository, https://github.com/modularizer/literalenum
|
|
@@ -12,8 +12,6 @@ Keywords: python,typehinting
|
|
|
12
12
|
Requires-Python: >=3.10
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
|
-
from sample_str_enum_solutions.a_strenum import HttpMethod
|
|
16
|
-
|
|
17
15
|
# LiteralEnum
|
|
18
16
|
|
|
19
17
|
**LiteralEnum** is an experiment/prototype for a proposed Python typing construct:
|
|
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "literalenum"
|
|
8
|
-
version = "0.
|
|
8
|
+
version = "0.3.0"
|
|
9
9
|
description = "A Python typing construct that provides namespaced literal constants with advanced typing features."
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.10"
|
|
@@ -129,10 +129,10 @@ def _render_enum_blocks(enums: list[EnumInfo]) -> str:
|
|
|
129
129
|
|
|
130
130
|
out: list[str] = []
|
|
131
131
|
for e in sorted(enums, key=lambda x: x.name):
|
|
132
|
-
|
|
132
|
+
T = f"{e.name}T"
|
|
133
133
|
values = list(e.members.values())
|
|
134
134
|
literal_union = ", ".join(_py_literal(v) for v in values) if values else ""
|
|
135
|
-
out.append(f"{
|
|
135
|
+
out.append(f"{T}: TypeAlias = Literal[{literal_union}]\n\n")
|
|
136
136
|
|
|
137
137
|
base = _enum_base_decl(e)
|
|
138
138
|
inherited = _inherited_member_names(e)
|
|
@@ -141,27 +141,62 @@ def _render_enum_blocks(enums: list[EnumInfo]) -> str:
|
|
|
141
141
|
own_members = [(k, v) for (k, v) in e.members.items() if k not in inherited]
|
|
142
142
|
|
|
143
143
|
out.append(f"class {e.name}({base}):\n")
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
else:
|
|
144
|
+
|
|
145
|
+
# -- Members --
|
|
146
|
+
if own_members:
|
|
148
147
|
for k, v in own_members:
|
|
149
148
|
out.append(f" {k}: Final[Literal[{_py_literal(v)}]] = {_py_literal(v)}\n")
|
|
149
|
+
else:
|
|
150
|
+
out.append(" ...\n")
|
|
151
|
+
out.append("\n")
|
|
152
|
+
|
|
153
|
+
# -- Mappings --
|
|
154
|
+
out.append(f" mapping: ClassVar[MappingProxyType[str, {T}]]\n")
|
|
155
|
+
out.append(f" unique_mapping: ClassVar[MappingProxyType[str, {T}]]\n")
|
|
156
|
+
out.append(f" __members__: ClassVar[MappingProxyType[str, {T}]]\n\n")
|
|
157
|
+
|
|
158
|
+
# -- Dict-like --
|
|
159
|
+
out.append(" @classmethod\n")
|
|
160
|
+
out.append(" def keys(cls) -> tuple[str, ...]: ...\n")
|
|
161
|
+
out.append(" @classmethod\n")
|
|
162
|
+
out.append(f" def values(cls) -> tuple[{T}, ...]: ...\n")
|
|
163
|
+
out.append(" @classmethod\n")
|
|
164
|
+
out.append(f" def items(cls) -> tuple[tuple[str, {T}], ...]: ...\n\n")
|
|
150
165
|
|
|
151
|
-
|
|
152
|
-
out.append(
|
|
166
|
+
# -- Alias introspection --
|
|
167
|
+
out.append(" @classmethod\n")
|
|
168
|
+
out.append(f" def names(cls, value: {T}) -> tuple[str, ...]: ...\n")
|
|
169
|
+
out.append(" @classmethod\n")
|
|
170
|
+
out.append(f" def canonical_name(cls, value: {T}) -> str: ...\n\n")
|
|
153
171
|
|
|
172
|
+
# -- Validation --
|
|
173
|
+
out.append(" @classmethod\n")
|
|
174
|
+
out.append(f" def is_valid(cls, x: object) -> TypeGuard[{T}]: ...\n")
|
|
175
|
+
out.append(" @classmethod\n")
|
|
176
|
+
out.append(f" def validate(cls, x: object) -> {T}: ...\n\n")
|
|
177
|
+
|
|
178
|
+
# -- Container protocol --
|
|
179
|
+
out.append(f" def __iter__(cls) -> Iterator[{T}]: ...\n")
|
|
180
|
+
out.append(f" def __reversed__(cls) -> Iterator[{T}]: ...\n")
|
|
181
|
+
out.append(" def __len__(cls) -> int: ...\n")
|
|
182
|
+
out.append(" def __bool__(cls) -> bool: ...\n")
|
|
183
|
+
out.append(" def __contains__(cls, value: object) -> bool: ...\n")
|
|
184
|
+
out.append(f" def __getitem__(cls, key: str) -> {T}: ...\n")
|
|
185
|
+
out.append(" def __repr__(cls) -> str: ...\n\n")
|
|
186
|
+
|
|
187
|
+
# -- Operators --
|
|
188
|
+
out.append(" def __or__(cls, other: LiteralEnumMeta) -> LiteralEnumMeta: ...\n")
|
|
189
|
+
out.append(" def __and__(cls, other: LiteralEnumMeta) -> LiteralEnumMeta: ...\n\n")
|
|
190
|
+
|
|
191
|
+
# -- Constructor --
|
|
154
192
|
if e.call_to_validate:
|
|
155
193
|
out.append(" @overload\n")
|
|
156
|
-
out.append(f" def __new__(cls, value: {
|
|
194
|
+
out.append(f" def __new__(cls, value: {T}) -> {T}: ...\n")
|
|
157
195
|
out.append(" @overload\n")
|
|
158
|
-
out.append(f" def __new__(cls, value: object) -> {
|
|
196
|
+
out.append(f" def __new__(cls, value: object) -> {T}: ...\n\n")
|
|
159
197
|
else:
|
|
160
198
|
out.append(f" def __new__(cls, value: Never) -> NoReturn: ...\n\n")
|
|
161
199
|
|
|
162
|
-
out.append(" @classmethod\n")
|
|
163
|
-
out.append(f" def is_member(cls, value: object) -> TypeGuard[{alias}]: ...\n\n")
|
|
164
|
-
|
|
165
200
|
return "".join(out)
|
|
166
201
|
|
|
167
202
|
|
|
@@ -202,8 +237,9 @@ def _render_overlay_stub_module(enums: list[EnumInfo]) -> str:
|
|
|
202
237
|
"""
|
|
203
238
|
out: list[str] = []
|
|
204
239
|
out.append("from __future__ import annotations\n")
|
|
205
|
-
out.append("from
|
|
206
|
-
out.append("from
|
|
240
|
+
out.append("from types import MappingProxyType\n")
|
|
241
|
+
out.append("from typing import ClassVar, Final, Iterator, Literal, Never, NoReturn, TypeAlias, TypeGuard, overload\n")
|
|
242
|
+
out.append("from literalenum import LiteralEnum, LiteralEnumMeta\n\n")
|
|
207
243
|
out.append(_render_enum_blocks(enums))
|
|
208
244
|
return "".join(out)
|
|
209
245
|
|
|
@@ -212,8 +248,9 @@ def _render_overlay_stub_module(enums: list[EnumInfo]) -> str:
|
|
|
212
248
|
# Adjacent stubs (preserve module)
|
|
213
249
|
# ----------------------------
|
|
214
250
|
|
|
215
|
-
|
|
216
|
-
|
|
251
|
+
_TYPES_INJECT = "from types import MappingProxyType"
|
|
252
|
+
_TYPING_INJECT = "from typing import ClassVar, Final, Iterator, Literal, Never, NoReturn, TypeAlias, TypeGuard, overload"
|
|
253
|
+
_LITERALENUM_INJECT = "from literalenum import LiteralEnum, LiteralEnumMeta"
|
|
217
254
|
_FUTURE = "from __future__ import annotations"
|
|
218
255
|
|
|
219
256
|
|
|
@@ -250,10 +287,12 @@ def _normalize_imports(import_lines: list[str]) -> list[str]:
|
|
|
250
287
|
continue
|
|
251
288
|
if s.startswith("from literalenum import") and "LiteralEnum" in s:
|
|
252
289
|
continue
|
|
290
|
+
if s.startswith("from types import") and "MappingProxyType" in s:
|
|
291
|
+
continue
|
|
253
292
|
if s.startswith("from typing import"):
|
|
254
293
|
# drop any typing line that imports our injected symbols
|
|
255
294
|
# (simple heuristic: if it mentions any of them, drop it)
|
|
256
|
-
symbols = ["ClassVar", "Final", "
|
|
295
|
+
symbols = ["ClassVar", "Final", "Iterator", "Literal", "TypeGuard", "overload"]
|
|
257
296
|
if any(sym in s for sym in symbols):
|
|
258
297
|
continue
|
|
259
298
|
out.append(s)
|
|
@@ -319,6 +358,7 @@ def _render_adjacent_preserving_stub(module: str, enums: list[EnumInfo]) -> str:
|
|
|
319
358
|
out.append("\n")
|
|
320
359
|
|
|
321
360
|
# Inject what enum blocks need, exactly once
|
|
361
|
+
out.append(_TYPES_INJECT + "\n")
|
|
322
362
|
out.append(_TYPING_INJECT + "\n")
|
|
323
363
|
out.append(_LITERALENUM_INJECT + "\n\n")
|
|
324
364
|
|
|
@@ -609,6 +609,62 @@ class LiteralEnumMeta(type):
|
|
|
609
609
|
"""
|
|
610
610
|
return validate_is_member(cls, x)
|
|
611
611
|
|
|
612
|
+
# ---- Testing utilities ----
|
|
613
|
+
|
|
614
|
+
def matches_enum(cls, enum_cls: type) -> bool:
|
|
615
|
+
"""Check whether this LiteralEnum has exactly the same values as *enum_cls*.
|
|
616
|
+
|
|
617
|
+
Compares the set of unique values in this LiteralEnum against the
|
|
618
|
+
``.value`` of every member in the given ``enum.Enum`` (or subclass).
|
|
619
|
+
Useful in test suites to assert two parallel definitions stay in sync::
|
|
620
|
+
|
|
621
|
+
import enum
|
|
622
|
+
|
|
623
|
+
class Color(enum.StrEnum):
|
|
624
|
+
RED = "red"
|
|
625
|
+
GREEN = "green"
|
|
626
|
+
|
|
627
|
+
class ColorLE(LiteralEnum):
|
|
628
|
+
RED = "red"
|
|
629
|
+
GREEN = "green"
|
|
630
|
+
|
|
631
|
+
assert ColorLE.matches_enum(Color)
|
|
632
|
+
|
|
633
|
+
Returns:
|
|
634
|
+
``True`` if the value sets are identical.
|
|
635
|
+
"""
|
|
636
|
+
try:
|
|
637
|
+
enum_values = {m.value for m in enum_cls}
|
|
638
|
+
except TypeError:
|
|
639
|
+
return False
|
|
640
|
+
return set(cls._ordered_values_) == enum_values
|
|
641
|
+
|
|
642
|
+
def matches_literal(cls, literal_type: Any) -> bool:
|
|
643
|
+
"""Check whether this LiteralEnum has exactly the same values as *literal_type*.
|
|
644
|
+
|
|
645
|
+
Extracts the arguments from a ``typing.Literal[...]`` and compares
|
|
646
|
+
them against this LiteralEnum's unique values. Useful in test suites
|
|
647
|
+
to assert a Literal type alias stays in sync with a LiteralEnum::
|
|
648
|
+
|
|
649
|
+
from typing import Literal
|
|
650
|
+
|
|
651
|
+
ColorLiteral = Literal["red", "green"]
|
|
652
|
+
|
|
653
|
+
class Color(LiteralEnum):
|
|
654
|
+
RED = "red"
|
|
655
|
+
GREEN = "green"
|
|
656
|
+
|
|
657
|
+
assert Color.matches_literal(ColorLiteral)
|
|
658
|
+
|
|
659
|
+
Returns:
|
|
660
|
+
``True`` if the value sets are identical.
|
|
661
|
+
"""
|
|
662
|
+
from typing import get_args
|
|
663
|
+
args = get_args(literal_type)
|
|
664
|
+
if not args:
|
|
665
|
+
return False
|
|
666
|
+
return set(cls._ordered_values_) == set(args)
|
|
667
|
+
|
|
612
668
|
|
|
613
669
|
# ---------------------------------------------------------------------------
|
|
614
670
|
# Base class
|
|
@@ -629,6 +629,103 @@ class TestAnd:
|
|
|
629
629
|
assert list(C) == [] # True and 1 are distinct by strict key
|
|
630
630
|
|
|
631
631
|
|
|
632
|
+
# ===================================================================
|
|
633
|
+
# matches_enum / matches_literal
|
|
634
|
+
# ===================================================================
|
|
635
|
+
|
|
636
|
+
class TestMatchesEnum:
|
|
637
|
+
def test_matches_identical(self):
|
|
638
|
+
import enum
|
|
639
|
+
|
|
640
|
+
class E(enum.Enum):
|
|
641
|
+
GET = "GET"
|
|
642
|
+
POST = "POST"
|
|
643
|
+
DELETE = "DELETE"
|
|
644
|
+
|
|
645
|
+
assert HttpMethod.matches_enum(E) is True
|
|
646
|
+
|
|
647
|
+
def test_matches_strenum(self):
|
|
648
|
+
import enum
|
|
649
|
+
|
|
650
|
+
class E(enum.StrEnum):
|
|
651
|
+
GET = "GET"
|
|
652
|
+
POST = "POST"
|
|
653
|
+
DELETE = "DELETE"
|
|
654
|
+
|
|
655
|
+
assert HttpMethod.matches_enum(E) is True
|
|
656
|
+
|
|
657
|
+
def test_matches_intenum(self):
|
|
658
|
+
import enum
|
|
659
|
+
|
|
660
|
+
class E(enum.IntEnum):
|
|
661
|
+
OK = 200
|
|
662
|
+
NOT_FOUND = 404
|
|
663
|
+
|
|
664
|
+
assert StatusCode.matches_enum(E) is True
|
|
665
|
+
|
|
666
|
+
def test_mismatch_extra_in_enum(self):
|
|
667
|
+
import enum
|
|
668
|
+
|
|
669
|
+
class E(enum.Enum):
|
|
670
|
+
GET = "GET"
|
|
671
|
+
POST = "POST"
|
|
672
|
+
DELETE = "DELETE"
|
|
673
|
+
PATCH = "PATCH"
|
|
674
|
+
|
|
675
|
+
assert HttpMethod.matches_enum(E) is False
|
|
676
|
+
|
|
677
|
+
def test_mismatch_missing_in_enum(self):
|
|
678
|
+
import enum
|
|
679
|
+
|
|
680
|
+
class E(enum.Enum):
|
|
681
|
+
GET = "GET"
|
|
682
|
+
|
|
683
|
+
assert HttpMethod.matches_enum(E) is False
|
|
684
|
+
|
|
685
|
+
def test_mismatch_different_values(self):
|
|
686
|
+
import enum
|
|
687
|
+
|
|
688
|
+
class E(enum.Enum):
|
|
689
|
+
GET = "get"
|
|
690
|
+
POST = "post"
|
|
691
|
+
DELETE = "delete"
|
|
692
|
+
|
|
693
|
+
assert HttpMethod.matches_enum(E) is False
|
|
694
|
+
|
|
695
|
+
def test_non_enum_returns_false(self):
|
|
696
|
+
assert HttpMethod.matches_enum(str) is False
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
class TestMatchesLiteral:
|
|
700
|
+
def test_matches_identical(self):
|
|
701
|
+
from typing import Literal
|
|
702
|
+
assert HttpMethod.matches_literal(Literal["GET", "POST", "DELETE"]) is True
|
|
703
|
+
|
|
704
|
+
def test_matches_int_literal(self):
|
|
705
|
+
from typing import Literal
|
|
706
|
+
assert StatusCode.matches_literal(Literal[200, 404]) is True
|
|
707
|
+
|
|
708
|
+
def test_mismatch_extra(self):
|
|
709
|
+
from typing import Literal
|
|
710
|
+
assert HttpMethod.matches_literal(Literal["GET", "POST", "DELETE", "PATCH"]) is False
|
|
711
|
+
|
|
712
|
+
def test_mismatch_missing(self):
|
|
713
|
+
from typing import Literal
|
|
714
|
+
assert HttpMethod.matches_literal(Literal["GET"]) is False
|
|
715
|
+
|
|
716
|
+
def test_order_independent(self):
|
|
717
|
+
from typing import Literal
|
|
718
|
+
assert HttpMethod.matches_literal(Literal["DELETE", "GET", "POST"]) is True
|
|
719
|
+
|
|
720
|
+
def test_non_literal_returns_false(self):
|
|
721
|
+
assert HttpMethod.matches_literal(str) is False
|
|
722
|
+
|
|
723
|
+
def test_matches_type_alias(self):
|
|
724
|
+
from typing import Literal
|
|
725
|
+
MyType = Literal["GET", "POST", "DELETE"]
|
|
726
|
+
assert HttpMethod.matches_literal(MyType) is True
|
|
727
|
+
|
|
728
|
+
|
|
632
729
|
# ===================================================================
|
|
633
730
|
# Edge cases
|
|
634
731
|
# ===================================================================
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/__init__.py
RENAMED
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/annotated.py
RENAMED
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/bare_class.py
RENAMED
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/base_model.py
RENAMED
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/click_choice.py
RENAMED
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/django_choices.py
RENAMED
|
File without changes
|
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/graphene_enum.py
RENAMED
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/int_enum.py
RENAMED
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/json_schema.py
RENAMED
|
File without changes
|
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/random_choice.py
RENAMED
|
File without changes
|
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/sqlalchemy_enum.py
RENAMED
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/str_enum.py
RENAMED
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/literalenum/compatibility_extensions/strawberry_enum.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/e_literal_plus_namespace.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{literalenum-0.2.0 → literalenum-0.3.0}/src/sample_str_enum_solutions/h_custom_literal_namespace.py
RENAMED
|
File without changes
|
|
File without changes
|