Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
f149f823
Commit
f149f823
authored
3 months ago
by
Daniel Bauer
Committed by
Frederik Hennig
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Relax type annotation in PsBlock __init__
parent
c2c31e84
No related branches found
No related tags found
1 merge request
!452
Relax type annotation in PsBlock __init__
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pystencils/backend/ast/structural.py
+2
-2
2 additions, 2 deletions
src/pystencils/backend/ast/structural.py
with
2 additions
and
2 deletions
src/pystencils/backend/ast/structural.py
+
2
−
2
View file @
f149f823
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
:
Sequenc
e
[
PsAstNode
]):
def
__init__
(
self
,
cs
:
Iterabl
e
[
PsAstNode
]):
self
.
_statements
=
list
(
cs
)
self
.
_statements
=
list
(
cs
)
@property
@property
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment