Uh oh!
There was an error while loading. Please reload this page.
process: add mypy session for samples - #551
Conversation
Hm... this will likely not be mergeable, because |
c80c04e to
5fe8d2bCompareThe version pins that require recent enough depndencies for the sake of static type analysis should be placed in the corresponding nox session definition. They should not interfere with dependency versions used for testing the code at runtime, i.e. when running the tests.
tswast
left a comment
There was a problem hiding this comment.
LGTM except for a couple of nits.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
Towards googleapis/google-cloud-python#15652.
This PR adds the
mypysession for samples and cleans up their type annotations.However, the PR does not address the errors caused by
mypynot realizing that a lot of methods from the generated client are dynamically injected into the hand written class. It also does not deal with a few missing annotations ingoogle-api-core(e.g.retry.Retry).Additional thing to consider is that the client classes that the end users use now have many more methods on them that were previously stored on their
client.apiattribute (and the .apiattribute has been removed). Caution is needed here.