Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent 3c642f6 commit 40211e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions trio/_shared_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
# matching.
def _unpack_call(fn, args, kwargs):
if isinstance(fn, functools.partial):
inner_fn, inner_args, inner_kwargs = _call_to_key(
fn.func, fn.args, fn.kwargs
)
inner_fn, inner_args, inner_kwargs = _call_to_key(fn.func, fn.args, fn.kwargs)
fn = inner_fn
args = (*inner_args, *args)
kwargs = {**inner_kwargs, **kwargs}
Expand Down

0 comments on commit 40211e0

Please sign in to comment.