-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Bump mypy #1333
Bump mypy #1333
Conversation
Everything (except downstream as usual) is passing. |
0ff1284
to
253e82b
Compare
@@ -114,7 +126,9 @@ async def execute( | |||
) | |||
msg = self.session.msg("execute_request", content) | |||
await self._dispatch_to_kernel(msg) | |||
return msg["header"]["msg_id"] | |||
res = msg["header"]["msg_id"] | |||
assert isinstance(res, str) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wondered if typing.cast
could be safer, but per protocol it looks like a valid assertion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, my hope is that if it's wrong we can at least trigger failures with nightlies/pre-release, whcih a cat would not
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review.
@@ -114,7 +126,9 @@ async def execute( | |||
) | |||
msg = self.session.msg("execute_request", content) | |||
await self._dispatch_to_kernel(msg) | |||
return msg["header"]["msg_id"] | |||
res = msg["header"]["msg_id"] | |||
assert isinstance(res, str) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, my hope is that if it's wrong we can at least trigger failures with nightlies/pre-release, whcih a cat would not
docs failure unrelated. |
No description provided.