Skip to content

Misc type annotations - #1294

Merged
minrk merged 2 commits into
ipython:mainfrom
Carreau:types-misc
Nov 15, 2024
Merged

Misc type annotations#1294
minrk merged 2 commits into
ipython:mainfrom
Carreau:types-misc

Conversation

@Carreau

Copy link
Copy Markdown
Member

Extracted from #1272

Comment threadipykernel/kernelapp.py Outdated
control_thread = Any()
shell_channel_thread = Any()

iopub_thread: BaseThread

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 think these still need to be defined as traits, e.g. : BaseThread = Any() or perhaps even Instance(BaseThread, allow_none=True).

@CarreauCarreauNov 14, 2024

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 think that will need a # type: ignore[assignment] as well, or mypy will be unhappy

@Carreau

Copy link
Copy Markdown
MemberAuthor

Updated, and fixed the corresponding error shown by mypy.

@minrk
minrk merged commit 8c4901d into ipython:mainNov 15, 2024
@minrk

Copy link
Copy Markdown
Member

Thanks!

@Carreau

Copy link
Copy Markdown
MemberAuthor

thanks for the review and merge !

ianthomas23 pushed a commit to ianthomas23/ipykernel that referenced this pull request Apr 10, 2025
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.

2 participants

@Carreau@minrk