Skip to content

Commit 69bd4a9

Browse files
authored
fix: mark _deprecate_threads_param as a wrapper to unblock introspection and docs (#1122)
1 parent afa7ff7 commit 69bd4a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

google/cloud/storage/transfer_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import warnings
2323
import pickle
2424
import copyreg
25+
import functools
2526

2627
from google.api_core import exceptions
2728
from google.cloud.storage import Client
@@ -61,6 +62,7 @@
6162

6263

6364
def _deprecate_threads_param(func):
65+
@functools.wraps(func)
6466
def convert_threads_or_raise(*args, **kwargs):
6567
binding = inspect.signature(func).bind(*args, **kwargs)
6668
threads = binding.arguments.get("threads")

0 commit comments

Comments
 (0)