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

Declare raiden-contracts to be typed via PEP561 #813

Merged
merged 1 commit into from Apr 2, 2019

Conversation

karlb
Copy link
Contributor

@karlb karlb commented Apr 2, 2019

When other packages import raiden-contracts, the type signatures will
not be used by mypy unless the package declares itself as properly
types. This can be done via PEP561:
https://mypy.readthedocs.io/en/latest/installed_packages.html#using-pep-561-compatible-packages-with-mypy

Adding this will improve type checking quality in raiden-services (and
potential other packages) whenever imports from raiden-contracts are
used.

When other packages import raiden-contracts, the type signatures will
not be used by mypy unless the package declares itself as properly
types.  This can be done via PEP561:
https://mypy.readthedocs.io/en/latest/installed_packages.html#using-pep-561-compatible-packages-with-mypy

Adding this will improve type checking quality in raiden-services (and
potential other packages) whenever imports from raiden-contracts are
used.
karlb added a commit to karlb/raiden-services that referenced this pull request Apr 2, 2019
When raiden-network/raiden-contracts#813 gets
merged we need this changes to avoid mypy errors.
@codecov
Copy link

codecov bot commented Apr 2, 2019

Codecov Report

Merging #813 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #813   +/-   ##
=======================================
  Coverage   82.82%   82.82%           
=======================================
  Files          20       20           
  Lines        1240     1240           
  Branches      129      129           
=======================================
  Hits         1027     1027           
  Misses        182      182           
  Partials       31       31
Impacted Files Coverage Δ
setup.py 0% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13ea19b...f684a95. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Apr 2, 2019

Codecov Report

Merging #813 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #813   +/-   ##
=======================================
  Coverage   82.82%   82.82%           
=======================================
  Files          20       20           
  Lines        1240     1240           
  Branches      129      129           
=======================================
  Hits         1027     1027           
  Misses        182      182           
  Partials       31       31
Impacted Files Coverage Δ
setup.py 0% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13ea19b...f684a95. Read the comment docs.

Copy link
Contributor

@pirapira pirapira left a comment

Choose a reason for hiding this comment

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

Looks good to me.

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.

None yet

2 participants