From 6bdea98ce6638e5bb0cb47d40aec4b98b5446b4c Mon Sep 17 00:00:00 2001 From: dotX12 <64792903+dotX12@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:33:07 +0300 Subject: [PATCH] fix: anyio major version parser (#1850) * fix: anyio major version parser * chore: bump version --------- Co-authored-by: Pastukhov Nikita --- faststream/__about__.py | 2 +- faststream/_compat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/faststream/__about__.py b/faststream/__about__.py index 6bc5c9573f..a829efe0e2 100644 --- a/faststream/__about__.py +++ b/faststream/__about__.py @@ -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__}" diff --git a/faststream/_compat.py b/faststream/_compat.py index e605f64ece..08c150d382 100644 --- a/faststream/_compat.py +++ b/faststream/_compat.py @@ -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