Never mind. I came from Python, so the reason was so stupid. '/' is a char, which does not correspond to the function signature. It expected to get a string as a second positional argument, so the method signature matched and the code worked as intended