Skip to content

Type annotations in Display_text label library as a sample test for pylint and CI verifications #123

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

Closed
wants to merge 8 commits into from

Conversation

jposada202020
Copy link
Contributor

As discussed during Saturday stream 2020-02-27 we want to include type annotations inside libraries code. Using this sample we want to verify CI behavior and possible solutions.

@jposada202020 jposada202020 changed the title Type annotations in Displa_text label library as a sample test for pylint and CI verifications Type annotations in Display_text label library as a sample test for pylint and CI verifications Feb 27, 2021
@jposada202020
Copy link
Contributor Author

As discussed: @hugodahl. Thanks let me know if you need help with anything :).
Nothing new here is falling since last week for the pylint bug. Thanks. Please review and comment.

Copy link

@hugodahl hugodahl left a comment

Choose a reason for hiding this comment

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

Just those two minor type-hint issues.

@@ -140,7 +140,7 @@ def __init__(
if (anchored_position is not None) and (anchor_point is not None):
self.anchored_position = anchored_position

def _create_background_box(self, lines, y_offset):
def _create_background_box(self, lines: int, y_offset: int):

Choose a reason for hiding this comment

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

Looks like one missed -> None for the return type. All other locations already appear to have it added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I miss that one, thanks for pointing that out!

@jposada202020
Copy link
Contributor Author

@hugodahl Thanks for the revision I made all the changes as suggested thanks for catching those up!!!

@FoamyGuy
Copy link
Contributor

This PR was superseded by #134 the type hints were included in that PR. The Tab replacement fix code was included with #132

Thanks for working on this @jposada202020!

@FoamyGuy FoamyGuy closed this Mar 14, 2021
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