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
c01fb82a
Commit
c01fb82a
authored
4 months ago
by
Frederik Hennig
Browse files
Options
Downloads
Plain Diff
Merge branch 'bauerd/type-annotation' into 'v2.0-dev'
Relax type annotation in PsBlock __init__ See merge request
!452
parents
c2c31e84
f149f823
Branches
Branches containing commit
No related tags found
1 merge request
!452
Relax type annotation in PsBlock __init__
Pipeline
#74258
passed
4 months ago
Stage: Code Quality
Stage: Unit Tests
Stage: legacy_test
Stage: docs
Changes
1
Pipelines
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 @
c01fb82a
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