From fb529bfea2b2c84976ea7d2941f305118a2050f7 Mon Sep 17 00:00:00 2001 From: Oliver Wilkes Date: Mon, 18 Dec 2023 21:18:20 +0000 Subject: [PATCH] fix(pool): cast supporting 3.8 --- mafic/pool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mafic/pool.py b/mafic/pool.py index 8ecfebf..a199b06 100644 --- a/mafic/pool.py +++ b/mafic/pool.py @@ -367,7 +367,9 @@ def get_random_node(cls) -> Node[ClientT]: If there are no nodes. """ # It is a classproperty. - nodes = cast(list[Node[ClientT]], cls.nodes) # pyright: ignore # noqa: PGH003 + nodes = cast( + "list[Node[ClientT]]", cls.nodes # pyright: ignore # noqa: PGH003 + ) if node := choice(nodes): return node