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

Misc type annotations #1294

Merged
merged 2 commits into from
Nov 15, 2024
Merged

Misc type annotations #1294

merged 2 commits into from
Nov 15, 2024

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Nov 13, 2024

Extracted from #1272

control_thread = Any()
shell_channel_thread = Any()

iopub_thread: BaseThread
Copy link
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).

Copy link
Member Author

@Carreau Carreau Nov 14, 2024

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

Carreau commented Nov 14, 2024

Updated, and fixed the corresponding error shown by mypy.

@minrk minrk merged commit 8c4901d into ipython:main Nov 15, 2024
29 of 32 checks passed
@minrk
Copy link
Member

minrk commented Nov 15, 2024

Thanks!

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.

2 participants