Skip to content

Commit

Permalink
Merge pull request #853 from asottile/py38-posonlyargs
Browse files Browse the repository at this point in the history
posonlyargs are always present in 3.8+
  • Loading branch information
asottile committed Jul 1, 2023
2 parents 6c87696 + e41b91f commit 908b055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyupgrade/_plugins/typing_pep563.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _visit_func(
yield from _process_args([node.args.vararg, node.args.kwarg])
yield from _process_args(node.args.args)
yield from _process_args(node.args.kwonlyargs)
yield from _process_args(getattr(node.args, 'posonlyargs', []))
yield from _process_args(node.args.posonlyargs)
if node.returns is not None:
yield from _replace_string_literal(node.returns)

Expand Down

0 comments on commit 908b055

Please sign in to comment.