Skip to content

Commit

Permalink
fix: mark _deprecate_threads_param as a wrapper to unblock introspect…
Browse files Browse the repository at this point in the history
…ion and docs (#1122)
  • Loading branch information
andrewsg authored Sep 27, 2023
1 parent afa7ff7 commit 69bd4a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions google/cloud/storage/transfer_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import warnings
import pickle
import copyreg
import functools

from google.api_core import exceptions
from google.cloud.storage import Client
Expand Down Expand Up @@ -61,6 +62,7 @@


def _deprecate_threads_param(func):
@functools.wraps(func)
def convert_threads_or_raise(*args, **kwargs):
binding = inspect.signature(func).bind(*args, **kwargs)
threads = binding.arguments.get("threads")
Expand Down

0 comments on commit 69bd4a9

Please sign in to comment.