Skip to content

Commit

Permalink
This is now documented
Browse files Browse the repository at this point in the history
  • Loading branch information
Gouvernathor committed Feb 28, 2023
1 parent 11770c4 commit 2b6a229
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions renpy/curry.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ def atl_partial_signature(signature, passed_parameters,
else:
new_parameters.append(param)

# relies on the kinds to be an ordered IntEnum, and on .sort to be stable
new_parameters.sort(key=lambda param: (param.kind.value, bool(param.default is not param.empty)))
new_parameters.sort(key=lambda param: (param.kind, bool(param.default is not param.empty)))

return signature.replace(parameters=new_parameters)

0 comments on commit 2b6a229

Please sign in to comment.