Skip to content

Commit 49f2ef5

Browse files
rchen152tseaver
authored andcommitted
Unbreak pytype by silencing a false positive. (#8106)
1 parent 37a4ac6 commit 49f2ef5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google/api_core/general_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626

2727
def wraps(wrapped):
2828
"""A functools.wraps helper that handles partial objects on Python 2."""
29-
if isinstance(wrapped, functools.partial):
29+
# https://github.com/google/pytype/issues/322
30+
if isinstance(wrapped, functools.partial): # pytype: disable=wrong-arg-types
3031
return six.wraps(wrapped, assigned=_PARTIAL_VALID_ASSIGNMENTS)
3132
else:
3233
return six.wraps(wrapped)

0 commit comments

Comments
 (0)