MCPcopy Create free account
hub / github.com/dask/dask / test_delayed_function_attributes_forwarded

Function test_delayed_function_attributes_forwarded

dask/tests/test_delayed.py:899–907  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

897
898
899def test_delayed_function_attributes_forwarded():
900 @delayed
901 def add(x, y):
902 """This is a docstring"""
903 return x + y
904
905 assert add.__name__ == "add"
906 assert add.__doc__ == "This is a docstring"
907 assert add.__wrapped__(1, 2) == 3
908
909
910def test_delayed_fusion():

Callers

nothing calls this directly

Calls 1

__wrapped__Method · 0.80

Tested by

no test coverage detected