Skip to content

Bump mypy - #1333

Merged
Carreau merged 4 commits into
ipython:mainfrom
Carreau:bump-mypy
Feb 19, 2025
Merged

Bump mypy#1333
Carreau merged 4 commits into
ipython:mainfrom
Carreau:bump-mypy

Conversation

@Carreau

Copy link
Copy Markdown
Member

No description provided.

@Carreau

Copy link
Copy Markdown
MemberAuthor

Everything (except downstream as usual) is passing.

@Carreau
Carreauforce-pushed the bump-mypy branch 5 times, most recently from 0ff1284 to 253e82bCompareFebruary 17, 2025 19:12
Comment threadipykernel/zmqshell.py Outdated
await self._dispatch_to_kernel(msg)
return msg["header"]["msg_id"]
res = msg["header"]["msg_id"]
assert isinstance(res, str)

Copy link
Copy Markdown
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
Copy Markdown
MemberAuthor

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>

@CarreauCarreau left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Thanks for the review.

await self._dispatch_to_kernel(msg)
return msg["header"]["msg_id"]
res = msg["header"]["msg_id"]
assert isinstance(res, str)

Copy link
Copy Markdown
MemberAuthor

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
Copy Markdown
MemberAuthor

docs failure unrelated.

@CarreauCarreau added this to the 7.0 milestone Feb 19, 2025
@Carreau
Carreau merged commit f9cfd11 into ipython:mainFeb 19, 2025
ianthomas23 pushed a commit to ianthomas23/ipykernel that referenced this pull request Apr 10, 2025
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Carreau@krassowski@minrk