From 9ce1487446df3a6d20ccfbc38448c8a0aeca95e3 Mon Sep 17 00:00:00 2001
From: Daniel Bauer <daniel.j.bauer@fau.de>
Date: Wed, 19 Feb 2025 09:17:21 +0100
Subject: [PATCH] relax type annotation in PsBlock __init__

---
 src/pystencils/backend/ast/structural.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pystencils/backend/ast/structural.py b/src/pystencils/backend/ast/structural.py
index 1d716fa96..2c79f4f46 100644
--- a/src/pystencils/backend/ast/structural.py
+++ b/src/pystencils/backend/ast/structural.py
@@ -1,5 +1,5 @@
 from __future__ import annotations
-from typing import Sequence, cast
+from typing import Iterable, Sequence, cast
 from types import NoneType
 
 from .astnode import PsAstNode, PsLeafMixIn
@@ -12,7 +12,7 @@ from .util import failing_cast
 class PsBlock(PsAstNode):
     __match_args__ = ("statements",)
 
-    def __init__(self, cs: Sequence[PsAstNode]):
+    def __init__(self, cs: Iterable[PsAstNode]):
         self._statements = list(cs)
 
     @property
-- 
GitLab