8000 Fix @wrap_python_function to handle complex units. · alex-python/pyScss@d1de124 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1de124

Browse files
committed
Fix @wrap_python_function to handle complex units.
1 parent 93385fe commit d1de124

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scss/types.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,10 @@ def wrapped(sass_arg):
436436
# TODO enforce no units for trig?
437437
python_arg = sass_arg.value
438438
python_ret = fn(python_arg)
439-
sass_ret = cls(python_ret, unit=sass_arg.unit)
439+
sass_ret = cls(
440+
python_ret,
441+
unit_numer=sass_arg.unit_numer,
442+
unit_denom=sass_arg.unit_denom)
440443
return sass_ret
441444

442445
return wrapped

0 commit comments

Comments
 (0)
0