diff options
| author | mryouse | 2022-07-01 02:59:39 +0000 |
|---|---|---|
| committer | mryouse | 2022-07-02 16:45:22 +0000 |
| commit | 688ffa154530589b462d2c9d6be6eb61da2f2851 (patch) | |
| tree | bca3ccff040301cf0ecf37b89c24c2b784e755fe /neb/__init__.py | |
| parent | d914e16f0b4de7a20df9dbd2d5baa97fa08424a7 (diff) | |
Revert "initial commit of multi-type support (only list of strings for now)"
This reverts commit bf8900200c25d383c883501446a8048ad8966d94.
Diffstat (limited to 'neb/__init__.py')
| -rw-r--r-- | neb/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/neb/__init__.py b/neb/__init__.py index cf51ed6..3ba9172 100644 --- a/neb/__init__.py +++ b/neb/__init__.py @@ -14,7 +14,7 @@ def interpret(exprs, env, ns=None): def evaluate(expr, env, ns=None): if isinstance(expr, Literal) or isinstance(expr, Function) or isinstance(expr, TypeWrap) or isinstance(expr, List): return expr - elif isinstance(expr, Symbol) or isinstance(expr, Type) or isinstance(expr, MultiType): + elif isinstance(expr, Symbol) or isinstance(expr, Type): if env.contains(expr.name): return evaluate(env.get(expr.name), env, ns) elif ns is not None and env.contains(f"{ns}/{expr.name}"): @@ -149,7 +149,7 @@ class UserFunction(Function): newparams.append(param) args.append(Arg(param.name, TypeEnum.ANY)) prev_type = False - elif (isinstance(param, Type) or isinstance(param, MultiType)) and not prev_type and not first: + elif isinstance(param, Type) and not prev_type and not first: if many is None: #args[-1].type_ = param.name args[-1].type_ = param |
