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
1 merge request!452Relax type annotation in PsBlock __init__
Pipeline #74258 passed with stages
in 6 minutes and 11 seconds
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
......
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