Skip to content

Commit c150ba2

Browse files
committed
refact: code clean up in check.py
Also normalize imports.
1 parent 3b95c7f commit c150ba2

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

src/api/check.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,34 @@
1111

1212
from typing import Union
1313

14-
import src.api.errmsg as errmsg
14+
from src.api import config
15+
from src.api import global_
16+
from src.api import errmsg
17+
1518
import src.symbols as symbols
1619

1720
from src.symbols.type_ import Type
18-
19-
from .constants import CLASS
20-
from .constants import SCOPE
21-
22-
from . import config
23-
from . import global_
24-
25-
__all__ = ['check_type',
26-
'check_is_declared_explicit',
27-
'check_and_make_label',
28-
'check_type_is_explicit',
29-
'check_call_arguments',
30-
'check_pending_calls',
31-
'check_pending_labels',
32-
'is_number',
33-
'is_const',
34-
'is_static',
35-
'is_string',
36-
'is_numeric',
37-
'is_dynamic',
38-
'is_null',
39-
'is_unsigned',
40-
'common_type'
41-
]
21+
from src.api.constants import CLASS, SCOPE
22+
23+
24+
__all__ = [
25+
'check_type',
26+
'check_is_declared_explicit',
27+
'check_and_make_label',
28+
'check_type_is_explicit',
29+
'check_call_arguments',
30+
'check_pending_calls',
31+
'check_pending_labels',
32+
'is_number',
33+
'is_const',
34+
'is_static',
35+
'is_string',
36+
'is_numeric',
37+
'is_dynamic',
38+
'is_null',
39+
'is_unsigned',
40+
'common_type'
41+
]
4242

4343

4444
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)