Skip to content

Commit

Permalink
server: reverse: fix function argument order
Browse files Browse the repository at this point in the history
This patch fixes the following bugbear issue:

    lona/server.py:996:17: B026 Star-arg unpacking after a keyword argument is strongly discouraged, because it only works when the keyword parameter is declared after all parameters supplied by the unpacked sequence, and this change of ordering can surprise and mislead readers.
        *args,
        ^

Signed-off-by: Florian Scherf <[email protected]>
  • Loading branch information
fscherf committed Dec 3, 2023
1 parent c9015dc commit b21d16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lona/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,8 @@ def reverse(
return cast(
str,
self._router.reverse(
route_name=route_name,
*args,
route_name=route_name,
**kwargs,
),
)
Expand Down

0 comments on commit b21d16d

Please sign in to comment.