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

Update the type annotations for our IPython magic #280

Merged

Conversation

godlygeek
Copy link
Contributor

A new version of IPython adds annotations for Magics, so we need to update to avoid warnings about unnecessary type: ignore comments.

Additionally, I realized that our parse_options method is unintentionally overriding a method inherited from our base class. We could rename the method to avoid the collision, but since its body is only one line, let's just inline it into the caller.

A new version of IPython adds annotations for `Magics`, so we need to
update to avoid warnings about unnecessary `type: ignore` comments.

Additionally, I realized that our `parse_options` method is
unintentionally overriding a method inherited from our base class. We
could rename the method to avoid the collision, but since its body is
only one line, let's just inline it into the caller.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
@godlygeek godlygeek self-assigned this Jan 3, 2023
@godlygeek godlygeek merged commit c3e41e5 into bloomberg:main Jan 3, 2023
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