Skip to content

Commit ad003ea

Browse files
author
Eli Sennesh
committed
python.Function: match untuplify usage in id to the original
Signed-off-by: Eli Sennesh <sennesh.e@northeastern.edu>
1 parent 458999d commit ad003ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discopy/python.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ def id(dom: Ty) -> Function:
171171
The identity function on a given tuple of types :code:`dom`.
172172
173173
Parameters:
174-
dom (python.Ty) : The typle of types on which to take the identity.
174+
dom (python.Ty) : The tuple of types on which to take the identity.
175175
"""
176-
return Function(untuplify, dom, dom)
176+
return Function(lambda *xs: untuplify(xs), dom, dom)
177177

178178
def then(self, other: Function) -> Function:
179179
"""

0 commit comments

Comments
 (0)