You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
api_core: fix / disable the broken 'pytype' session in 'nox'. #8097
This looks like more fallout from python/typeshed@e45f443. Typeshed is representing the return value of functools.partial() as a function rather than a class in order to get better type-checking when the returned partial is used. I'll send a PR to silence the failure (should be as simple as adding # pytype: disable=wrong-arg-types at the end of the line that pytype is complaining about).
I didn't author or review that change, but from what I understand, the reasoning was that it caused only a small number of false positives and made type-checking more precise in the vast majority of cases.
Activity
tseaver commentedon May 22, 2019
@rchen152 Is this new failure in our 'pytype' session due to a recent release of pytype, e.g. perhaps containing google/pytype#314?
rchen152 commentedon May 22, 2019
This looks like more fallout from python/typeshed@e45f443. Typeshed is representing the return value of functools.partial() as a function rather than a class in order to get better type-checking when the returned partial is used. I'll send a PR to silence the failure (should be as simple as adding
# pytype: disable=wrong-arg-typesat the end of the line that pytype is complaining about).tseaver commentedon May 22, 2019
@rchen152 That is an odd choice for Typeshed to make:
functools.partialis most definitely atypein both Python 2.7 and 3.7:rchen152 commentedon May 22, 2019
I didn't author or review that change, but from what I understand, the reasoning was that it caused only a small number of false positives and made type-checking more precise in the vast majority of cases.