Skip to content

Commit fee3dea

Browse files
authored
chore(release): prepare beta release (#680)
* chore(release): prepare beta release
1 parent fad4eff commit fee3dea

3 files changed

Lines changed: 86 additions & 114 deletions

File tree

advanced_alchemy/_serialization.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,22 @@ def encode_json(data: Any) -> str: # pragma: no cover
6060

6161
except ImportError:
6262
try:
63-
from orjson import OPT_NAIVE_UTC, OPT_SERIALIZE_NUMPY, OPT_SERIALIZE_UUID
64-
from orjson import dumps as _encode_json
65-
from orjson import loads as decode_json # type: ignore[no-redef,assignment]
63+
from orjson import ( # type: ignore[import-not-found] # pyright: ignore[reportMissingImports]
64+
OPT_NAIVE_UTC, # pyright: ignore[reportUnknownVariableType]
65+
OPT_SERIALIZE_NUMPY, # pyright: ignore[reportUnknownVariableType]
66+
OPT_SERIALIZE_UUID, # pyright: ignore[reportUnknownVariableType]
67+
)
68+
from orjson import ( # type: ignore[import-not-found] # pyright: ignore[reportMissingImports]
69+
dumps as _encode_json, # pyright: ignore[reportUnknownVariableType]
70+
)
71+
from orjson import ( # type: ignore[no-redef,assignment,import-not-found] # pyright: ignore[reportMissingImports]
72+
loads as decode_json, # pyright: ignore[reportUnknownVariableType,reportUnusedImport]
73+
)
6674

6775
def encode_json(data: Any) -> str: # pragma: no cover
68-
return _encode_json(
76+
return _encode_json( # type: ignore[no-any-return]
6977
data, default=_type_to_string, option=OPT_SERIALIZE_NUMPY | OPT_NAIVE_UTC | OPT_SERIALIZE_UUID
70-
).decode("utf-8") # type: ignore[no-any-return]
78+
).decode("utf-8")
7179

7280
except ImportError:
7381
from json import dumps as encode_json # type: ignore[assignment] # noqa: F401

pyproject.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ maintainers = [
4646
name = "advanced_alchemy"
4747
readme = "docs/PYPI_README.md"
4848
requires-python = ">=3.9"
49-
version = "1.9.0"
49+
version = "1.9.0b1"
5050

5151
[project.urls]
5252
Changelog = "https://advanced-alchemy.litestar.dev/latest/changelog"
@@ -176,7 +176,7 @@ test = [
176176
allow_dirty = true
177177
commit = false
178178
commit_args = "--no-verify"
179-
current_version = "1.9.0"
179+
current_version = "1.9.0b1"
180180
ignore_missing_files = false
181181
ignore_missing_version = false
182182
message = "chore(release): bump to v{new_version}"
@@ -187,18 +187,15 @@ parse = """(?x)
187187
regex = false
188188
replace = "{new_version}"
189189
search = "{current_version}"
190-
serialize = [
191-
"{major}.{minor}.{patch}{pre}{pre_n}",
192-
"{major}.{minor}.{patch}",
193-
]
190+
serialize = ["{major}.{minor}.{patch}{pre}{pre_n}", "{major}.{minor}.{patch}"]
194191
sign_tags = false
195192
tag = false
196193
tag_message = "chore(release): v{new_version}"
197194
tag_name = "v{new_version}"
198195

199196
[tool.bumpversion.parts.pre]
200-
optional_value = "stable"
201197
first_value = "stable"
198+
optional_value = "stable"
202199
values = ["a", "b", "rc", "stable"]
203200

204201
[tool.bumpversion.parts.pre_n]

0 commit comments

Comments
 (0)