Skip to content

Commit

Permalink
fix: anyio major version parser (#1850)
Browse files Browse the repository at this point in the history
* fix: anyio major version parser

* chore: bump version

---------

Co-authored-by: Pastukhov Nikita <nikita@pastukhov-dev.ru>
  • Loading branch information
dotX12 and Lancetnik authored Oct 14, 2024
1 parent 10a0796 commit 6bdea98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion faststream/__about__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Simple and fast framework to create message brokers based microservices."""

__version__ = "0.5.26"
__version__ = "0.5.27"

SERVICE_NAME = f"faststream-{__version__}"
2 changes: 1 addition & 1 deletion faststream/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def with_info_plain_validator_function( # type: ignore[misc]
return {}


anyio_major, *_ = map(int, get_version("anyio").split("."))
anyio_major = int(get_version("anyio").split(".")[0])
ANYIO_V3 = anyio_major == 3


Expand Down

0 comments on commit 6bdea98

Please sign in to comment.