File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,16 @@ driver_name = config['driver_name']
1212
1313functions = config[' functions' ]
1414functions = helper.filter_library_functions(functions)
15+ are_complex_parameters_used = helper.are_complex_parameters_used(functions)
1516%> \
1617
1718import ctypes
1819import ${ module_name} .errors as errors
1920import threading
2021
22+ % if are_complex_parameters_used:
23+ from ${ module_name} ._complextype import * # noqa: F403
24+ % endif
2125from ${ module_name} ._visatype import * # noqa: F403,H303
2226% for c in config[' custom_types' ]:
2327
Original file line number Diff line number Diff line change 55import nifake .errors as errors
66import threading
77
8+ from nifake ._complextype import * # noqa: F403
89from nifake ._visatype import * # noqa: F403,H303
910
1011import nifake .custom_struct as custom_struct # noqa: F401
You can’t perform that action at this time.
0 commit comments