Skip to content
Snippets Groups Projects
Commit c01fb82a authored by Frederik Hennig's avatar Frederik Hennig
Browse files

Merge branch 'bauerd/type-annotation' into 'v2.0-dev'

Relax type annotation in PsBlock __init__

See merge request !452
parents c2c31e84 f149f823
No related branches found
No related tags found
No related merge requests found
Pipeline #74259 passed
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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment