Skip to content

Commit 53ed51e

Browse files
committed
improve debugging ability
1 parent b99ceb3 commit 53ed51e

14 files changed

+13
-19
lines changed

gfort2py/module_parse.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ class c_item:
102102
omp_device_type: bool = False
103103
is_bind_c: bool = False
104104
binding_label: str = ""
105-
raw: t.Any
106105

107106
def __init__(self, *args):
108107
self.name = string_clean(args[0])
@@ -124,7 +123,6 @@ class generics:
124123
name: str = ""
125124
module: str = ""
126125
id: t.List[int] = -1
127-
raw: t.Any
128126

129127
def __init__(self, *args):
130128
self.name = string_clean(args[0])
@@ -372,7 +370,6 @@ class attribute:
372370
ext_attr: int = -1
373371
extension: int = -1
374372
attributes: t.Set[str] = None
375-
raw: t.Any
376373

377374
def __init__(self, *args):
378375
self.flavor = string_clean(args[0])
@@ -418,7 +415,6 @@ def mn_name(self):
418415
@dataclass(init=False)
419416
class formal_arglist:
420417
symbol: t.List[symbol_ref] = None
421-
raw: t.Any
422418

423419
def __init__(self, *args):
424420
self.symbol = []
@@ -445,8 +441,6 @@ class typebound_proc:
445441
pass_arg: str = ""
446442
pass_arg_num: symbol_ref = None
447443
proc_ref: symbol_ref = None
448-
raw: t.Any
449-
kwargs: t.Any
450444

451445
def __init__(self, *args, **kwargs):
452446
self.name = string_clean(args[0][0])
@@ -469,8 +463,6 @@ def __init__(self, *args, **kwargs):
469463
class derived_ns:
470464
unknown1: str = None
471465
proc: t.List[typebound_proc] = None
472-
raw: t.Any
473-
kwargs: t.Any
474466

475467
def __init__(self, *args, **kwargs):
476468
self.raw = args
@@ -486,9 +478,6 @@ def __init__(self, *args, **kwargs):
486478

487479
@dataclass(init=False)
488480
class actual_arglist:
489-
raw: t.Any
490-
kwargs: t.Any
491-
492481
def __init__(self, *args, **kwargs):
493482
self.raw = args
494483
self.kwargs = kwargs
@@ -548,7 +537,6 @@ class expression:
548537
charlen: int = -1
549538
unary_op: str = ""
550539
unary_args: t.Any = None
551-
raw: t.Any
552540

553541
def __init__(self, *args):
554542
self.raw = args
@@ -625,7 +613,6 @@ class arrayspec:
625613
array_type: str = ""
626614
lower: t.List[expression] = None
627615
upper: t.List[expression] = None
628-
raw: t.Any
629616

630617
def __init__(self, *args):
631618
self.raw = args
@@ -679,7 +666,6 @@ class component(utils):
679666
access: str = ""
680667
initializer: expression = None
681668
proc_ptr: typebound_proc = None
682-
raw: t.Any
683669

684670
def __init__(self, *args):
685671
self.raw = args
@@ -711,7 +697,6 @@ def __init__(self, *args):
711697
@dataclass(init=False)
712698
class components:
713699
comp: t.List[component] = None
714-
raw: t.Any
715700

716701
def __init__(self, *args):
717702
self.comp = []
@@ -730,7 +715,6 @@ def __iter__(self):
730715
@dataclass(init=False)
731716
class namelist:
732717
sym_ref: t.List[symbol_ref] = None
733-
raw: t.Any
734718

735719
def __init__(self, *args):
736720
self.raw = args
@@ -770,7 +754,6 @@ class data:
770754
intrinsic_symbol: int = -1
771755
hash: int = -1
772756
simd: simd_dec = None
773-
raw: t.Any
774757

775758
def __init__(self, *args):
776759
self.raw = args
@@ -814,7 +797,6 @@ class symbol(utils):
814797
head: header = None
815798
sym: data = None
816799
raw: str = ""
817-
raw: t.Any
818800

819801
def __init__(self, *args):
820802
self.head = header(*args[0:5])

tests/basic_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os, sys
44
import ctypes
5+
from pprint import pprint
56

67
os.environ["_GFORT2PY_TEST_FLAG"] = "1"
78

tests/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os, sys
44
import ctypes
5+
from pprint import pprint
56

67
os.environ["_GFORT2PY_TEST_FLAG"] = "1"
78

tests/complex_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os, sys
44
import ctypes
5+
from pprint import pprint
56

67
os.environ["_GFORT2PY_TEST_FLAG"] = "1"
78

tests/dt_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os, sys
44
import ctypes
5+
from pprint import pprint
56

67
os.environ["_GFORT2PY_TEST_FLAG"] = "1"
78

tests/dummy_arrays_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os, sys
44
import ctypes
5+
from pprint import pprint
56

67
os.environ["_GFORT2PY_TEST_FLAG"] = "1"
78

tests/explicit_arrays_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os, sys
44
import ctypes
5+
from pprint import pprint
56

67
os.environ["_GFORT2PY_TEST_FLAG"] = "1"
78

tests/oo_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os, sys
44
import ctypes
5+
from pprint import pprint
56

67
os.environ["_GFORT2PY_TEST_FLAG"] = "1"
78

tests/pdt_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os, sys
44
import ctypes
5+
from pprint import pprint
56

67
os.environ["_GFORT2PY_TEST_FLAG"] = "1"
78

tests/pointers_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os, sys
44
import ctypes
5+
from pprint import pprint
56

67
os.environ["_GFORT2PY_TEST_FLAG"] = "1"
78

0 commit comments

Comments
 (0)