Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static: mypy requires __init__.py #3027

Merged
merged 4 commits into from
Apr 10, 2020
Merged

Conversation

sergiusens
Copy link
Collaborator

Add missing init.py to workaround python/mypy#1645
Fix mypy type hint issues in the code found from this.

Signed-off-by: Sergio Schvezov [email protected]

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run ./runtests.sh static?
  • Have you successfully run ./runtests.sh tests/unit?

Add missing __init__.py to workaround python/mypy#1645
Fix mypy type hint issues in the code found from this.

Signed-off-by: Sergio Schvezov <[email protected]>
zyga
zyga previously approved these changes Apr 10, 2020
Copy link
Contributor

@zyga zyga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mypy is paying off, I see :)

cjp256
cjp256 previously approved these changes Apr 10, 2020
@sergiusens sergiusens dismissed stale reviews from cjp256 and zyga via 8fa938a April 10, 2020 12:32
@cjp256
Copy link
Contributor

cjp256 commented Apr 10, 2020

./snapcraft/storeapi/v2/channel_map.py:17:1: F401 'typing.Union' imported but unused
266

cjp256
cjp256 previously approved these changes Apr 10, 2020
@sergiusens sergiusens merged commit 07e76d2 into canonical:master Apr 10, 2020
@sergiusens sergiusens deleted the mypy branch April 10, 2020 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants