8000 Fix typehints by kostrykin · Pull Request #47 · kostrykin/repype · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix typehints #47

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

Merged
merged 1 commit into from
Jun 2, 2025
Merged

Fix typehints #47

merged 1 commit into from
Jun 2, 2025

Conversation

kostrykin
Copy link
Owner

No description provided.

Copy link
github-actions bot commented Jun 2, 2025

Test coverage of c6dfed5: 94%

@kostrykin kostrykin marked this pull request as ready for review June 2, 2025 17:31
@kostrykin kostrykin requested a review from Copilot June 2, 2025 17:31
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the type hint for the digest property in repype/task.py to reflect that the method can now return None.

  • Updated the return type of the digest property from Mapping[str, Any] to Optional[Mapping[str, Any]]
  • Revised the relevant type hints to match the updated functionality
Comments suppressed due to low confidence (1)

repype/task.py:241

  • The updated Optional return type indicates that digest may now return None. Ensure that all users of this property are updated to handle this nullability to maintain API consistency.
def digest(self) -> Optional[Mapping[str, Any]]:

@kostrykin kostrykin merged commit 383ee7b into develop Jun 2, 2025
7 checks passed
@kostrykin kostrykin deleted the dev/typehints branch June 2, 2025 21:23
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.

1 participant
0