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

Bump mypy #1333

Merged
merged 4 commits into from
Feb 19, 2025
Merged

Bump mypy #1333

merged 4 commits into from
Feb 19, 2025

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Feb 13, 2025

No description provided.

@Carreau
Copy link
Member Author

Carreau commented Feb 13, 2025

Everything (except downstream as usual) is passing.

@Carreau Carreau force-pushed the bump-mypy branch 5 times, most recently from 0ff1284 to 253e82b Compare February 17, 2025 19:12
@@ -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)
Copy link
Member

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

Copy link
Member Author

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>
Copy link
Member Author

@Carreau Carreau left a 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)
Copy link
Member Author

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

@Carreau
Copy link
Member Author

Carreau commented Feb 19, 2025

docs failure unrelated.

@Carreau Carreau added this to the 7.0 milestone Feb 19, 2025
@Carreau Carreau merged commit f9cfd11 into ipython:main Feb 19, 2025
26 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants