Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MPI-BugBench
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
High Performance Computing - Public
MPI-BugBench
Commits
2e9823d8
Commit
2e9823d8
authored
1 year ago
by
Jammer, Tim
Browse files
Options
Downloads
Patches
Plain Diff
fix wrong type hint
parent
e19da0fc
No related branches found
No related tags found
1 merge request
!9
Infrastructure: Type Hints, Instruction class and lists of instructions
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Infrastructure/AllocCall.py
+3
-3
3 additions, 3 deletions
scripts/Infrastructure/AllocCall.py
with
3 additions
and
3 deletions
scripts/Infrastructure/AllocCall.py
+
3
−
3
View file @
2e9823d8
...
@@ -25,7 +25,7 @@ alloc_template = """
...
@@ -25,7 +25,7 @@ alloc_template = """
class
AllocCall
(
Instruction
):
class
AllocCall
(
Instruction
):
@override
@override
def
__init__
(
self
,
type
:
str
,
num_elements
:
int
,
name
:
str
=
"
buf
"
,
use_malloc
:
bool
=
False
):
def
__init__
(
self
,
type
:
str
,
num_elements
:
str
,
name
:
str
=
"
buf
"
,
use_malloc
:
bool
=
False
):
"""
"""
Creates a New allocation Call
Creates a New allocation Call
...
@@ -62,7 +62,7 @@ class AllocCall(Instruction):
...
@@ -62,7 +62,7 @@ class AllocCall(Instruction):
return
s
return
s
def
set_num_elements
(
self
,
num_elements
:
int
):
def
set_num_elements
(
self
,
num_elements
:
str
):
self
.
_num_elements
=
num_elements
self
.
_num_elements
=
num_elements
def
set_name
(
self
,
name
:
str
):
def
set_name
(
self
,
name
:
str
):
...
@@ -77,7 +77,7 @@ class AllocCall(Instruction):
...
@@ -77,7 +77,7 @@ class AllocCall(Instruction):
def
set_use_calloc
(
self
):
def
set_use_calloc
(
self
):
self
.
_use_malloc
=
False
self
.
_use_malloc
=
False
def
get_num_elements
(
self
)
->
int
:
def
get_num_elements
(
self
)
->
str
:
return
self
.
_num_elements
return
self
.
_num_elements
def
get_name
(
self
)
->
str
:
def
get_name
(
self
)
->
str
:
...
...
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