We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a4ac6 commit 49f2ef5Copy full SHA for 49f2ef5
google/api_core/general_helpers.py
@@ -26,7 +26,8 @@
26
27
def wraps(wrapped):
28
"""A functools.wraps helper that handles partial objects on Python 2."""
29
- if isinstance(wrapped, functools.partial):
+ # https://github.com/google/pytype/issues/322
30
+ if isinstance(wrapped, functools.partial): # pytype: disable=wrong-arg-types
31
return six.wraps(wrapped, assigned=_PARTIAL_VALID_ASSIGNMENTS)
32
else:
33
return six.wraps(wrapped)
0 commit comments