Skip to content
Snippets Groups Projects
Commit f149f823 authored by Daniel Bauer's avatar Daniel Bauer :speech_balloon: Committed by Frederik Hennig
Browse files

Relax type annotation in PsBlock __init__

parent c2c31e84
Branches
No related tags found
1 merge request!452Relax type annotation in PsBlock __init__
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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment