diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/edify/builder/helpers/core.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/edify/builder/helpers/core.py b/src/edify/builder/helpers/core.py index f8cabe3..38e8929 100644 --- a/src/edify/builder/helpers/core.py +++ b/src/edify/builder/helpers/core.py @@ -47,9 +47,9 @@ def apply_subexpression_defaults(expr): out['namespace'] = "" if 'namespace' not in out else out['namespace'] out['ignore_flags'] = True if 'ignore_flags' not in out else out['ignore_flags'] out['ignore_start_and_end'] = True if 'ignore_start_and_end' not in out else out['ignore_start_and_end'] - assertion(type(out['namespace']) == str, 'namespace must be a string') - assertion(type(out['ignore_flags']) == bool, 'ignore_flags must be a boolean') - assertion(type(out['ignore_start_and_end']) == bool, 'ignore_start_and_end must be a boolean') + assertion(isinstance(out['namespace'], str), 'namespace must be a string') + assertion(isinstance(out['ignore_flags'], bool), 'ignore_flags must be a boolean') + assertion(isinstance(out['ignore_start_and_end'], bool), 'ignore_start_and_end must be a boolean') return out |
