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