Iliya R
10/20/2024, 1:39 PMhamilton\function_modifiers\macros.py:1522: SyntaxWarning: invalid escape sequence '\*'
What needs to be done is add a r to the beginning of the docstring (i.e. """ -> r""") and change \*\* on the aforementioned line to **.Elijah Ben Izzy
10/20/2024, 1:50 PMIliya R
10/20/2024, 1:52 PMElijah Ben Izzy
10/20/2024, 2:03 PMElijah Ben Izzy
10/21/2024, 3:48 AMJernj Frank
10/21/2024, 3:52 AMpytest tests/function_modifiers/test_macros.py
where the mutate tests are located.
Also, the suggested fix errors out with
hamilton/hamilton/function_modifiers/macros.py:docstring of hamilton.function_modifiers.macros.mutate.__init__:8:Inline strong start-string without end-string.
Sphinx exited with exit code: 2
which I think comes form an rst compilation issue.
Putting ``**kwargs`` seems to fix the issue and I think it might not raise a pytest error.Jernj Frank
10/21/2024, 4:22 AMJernj Frank
10/21/2024, 4:24 AM