Skip to content

Commit

Permalink
Added the dummy function for len for type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonwatts committed Sep 12, 2024
1 parent 15d88b0 commit b51dae6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions func_adl/type_based_replacement.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ def _load_default_global_functions():
# TODO: Add in other functions

def my_abs(x: float) -> float: ... # noqa
def my_len(x: Iterable) -> int: ... # noqa

_global_functions["abs"] = _FuncAdlFunction("abs", my_abs, None)
_global_functions["len"] = _FuncAdlFunction("len", my_len, None)


_load_default_global_functions()
Expand Down

0 comments on commit b51dae6

Please sign in to comment.