Skip to content
Snippets Groups Projects
Commit 9ce14874 authored by Daniel Bauer's avatar Daniel Bauer :speech_balloon:
Browse files

relax type annotation in PsBlock __init__

parent c2c31e84
No related merge requests found
Pipeline #74256 passed with stages
in 7 minutes and 26 seconds
from __future__ import annotations from __future__ import annotations
from typing import Sequence, cast from typing import Iterable, Sequence, cast
from types import NoneType from types import NoneType
from .astnode import PsAstNode, PsLeafMixIn from .astnode import PsAstNode, PsLeafMixIn
...@@ -12,7 +12,7 @@ from .util import failing_cast ...@@ -12,7 +12,7 @@ from .util import failing_cast
class PsBlock(PsAstNode): class PsBlock(PsAstNode):
__match_args__ = ("statements",) __match_args__ = ("statements",)
def __init__(self, cs: Sequence[PsAstNode]): def __init__(self, cs: Iterable[PsAstNode]):
self._statements = list(cs) self._statements = list(cs)
@property @property
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment