Fix pkg_resource functions#4817
Fix pkg_resource functions#4817Dreamsorcerer wants to merge 2 commits intopython:masterfrom Dreamsorcerer:patch-12
Conversation
|
Hmm, seems pytype doesn't recognise the working_set declaration on the line before. But, it works fine with Mypy. Any ideas how to define this in a way compatible with pytype? Similarly, flake8 is probably ignoring the declaration as there is no assignment operator. I think that's just because the tool was written to lint implementation code, rather than stubs. |
|
Unfortunately, I don't think pytype supports bound methods. This came up in #4282 (comment) as well. |
|
Yep, does that mean I need to revert back and just copy/paste the fixed annotations? |
|
Yes, although I filed google/pytype#761. @rchen152 is super responsive, so maybe not too long from now it'll work :-) |
|
Will close this in the meantime. |
These functions are actually bound methods from working_set.
Any differences in the signatures (e.g.
Sequence[str]inrequire()are bugs.