Skip to content

Commit 6bdea98

Browse files
dotX12Lancetnik
andauthored
fix: anyio major version parser (#1850)
* fix: anyio major version parser * chore: bump version --------- Co-authored-by: Pastukhov Nikita <nikita@pastukhov-dev.ru>
1 parent 10a0796 commit 6bdea98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

faststream/__about__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Simple and fast framework to create message brokers based microservices."""
22

3-
__version__ = "0.5.26"
3+
__version__ = "0.5.27"
44

55
SERVICE_NAME = f"faststream-{__version__}"

faststream/_compat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def with_info_plain_validator_function( # type: ignore[misc]
150150
return {}
151151

152152

153-
anyio_major, *_ = map(int, get_version("anyio").split("."))
153+
anyio_major = int(get_version("anyio").split(".")[0])
154154
ANYIO_V3 = anyio_major == 3
155155

156156

0 commit comments

Comments
 (0)