Skip to content

Commit 03fbf42

Browse files
style fixes
1 parent 19611dc commit 03fbf42

2 files changed

Lines changed: 36 additions & 11 deletions

File tree

source/openpulse/openpulse/ast.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# pylint: disable=unused-import
2323
from openqasm3.ast import ExternArgument
2424

25+
2526
# From Pulse grammar
2627
class WaveformType(ClassicalType):
2728
"""

source/openpulse/tests/test_openpulse_parser.py

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,41 @@
11
import dataclasses
22

33
import pytest
4-
from openpulse.ast import (AngleType, Annotation, ArrayLiteral, ArrayType,
5-
AssignmentOperator, CalibrationDefinition,
6-
CalibrationStatement, ClassicalArgument,
7-
ClassicalAssignment, ClassicalDeclaration,
8-
ComplexType, DurationType, ExpressionStatement,
9-
ExternArgument, ExternDeclaration, FloatLiteral,
10-
FloatType, ForInLoop, FrameType, FunctionCall,
11-
Identifier, IntegerLiteral, IntType, PortType,
12-
Pragma, Program, QASMNode, QuantumBarrier,
13-
RangeDefinition, ReturnStatement, UnaryExpression,
14-
UnaryOperator, WaveformType)
4+
from openpulse.ast import (
5+
AngleType,
6+
Annotation,
7+
ArrayLiteral,
8+
ArrayType,
9+
AssignmentOperator,
10+
CalibrationDefinition,
11+
CalibrationStatement,
12+
ClassicalArgument,
13+
ClassicalAssignment,
14+
ClassicalDeclaration,
15+
ComplexType,
16+
DurationType,
17+
ExpressionStatement,
18+
ExternArgument,
19+
ExternDeclaration,
20+
FloatLiteral,
21+
FloatType,
22+
ForInLoop,
23+
FrameType,
24+
FunctionCall,
25+
Identifier,
26+
IntegerLiteral,
27+
IntType,
28+
PortType,
29+
Pragma,
30+
Program,
31+
QASMNode,
32+
QuantumBarrier,
33+
RangeDefinition,
34+
ReturnStatement,
35+
UnaryExpression,
36+
UnaryOperator,
37+
WaveformType,
38+
)
1539
from openpulse.parser import parse
1640
from openqasm3.visitor import QASMVisitor
1741

0 commit comments

Comments
 (0)