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

Add type hints to the convert methods #146

Merged
merged 2 commits into from
May 14, 2024

Conversation

nstarman
Copy link
Contributor

No description provided.

Signed-off-by: nstarman <nstarman@users.noreply.github.com>
@@ -57,11 +70,13 @@ def add_conversion_method(type_from, type_to, f):
"""

@_convert.dispatch
def perform_conversion(obj: type_from, _: type_to):
def perform_conversion(obj, _):
Copy link
Member

Choose a reason for hiding this comment

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

The tests might be failing because the type annotations here are not there anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 9053144554

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 11 of 12 (91.67%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.08%) to 99.919%

Changes Missing Coverage Covered Lines Changed/Added Lines %
plum/promotion.py 11 12 91.67%
Totals Coverage Status
Change from base Build 8838672522: -0.08%
Covered Lines: 1226
Relevant Lines: 1227

💛 - Coveralls

@nstarman nstarman requested a review from wesselb May 12, 2024 22:53
@wesselb wesselb marked this pull request as ready for review May 14, 2024 07:59
@wesselb
Copy link
Member

wesselb commented May 14, 2024

This looks great!! Thanks :). Merging right away!

@wesselb wesselb merged commit 37f473b into beartype:master May 14, 2024
6 checks passed
@nstarman nstarman deleted the typing-conversion branch May 14, 2024 14:02
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

3 participants