Skip to content

Fix traitlets typing - #7082

Merged
jtpio merged 1 commit into
jupyter:mainfrom
jtpio:fix-lint
Oct 3, 2023
Merged

Fix traitlets typing#7082
jtpio merged 1 commit into
jupyter:mainfrom
jtpio:fix-lint

Conversation

@jtpio

@jtpio jtpio commented Oct 2, 2023

Copy link
Copy Markdown
Member

Fixes #7081

@jtpio jtpio added this to the 7.0.x milestone Oct 2, 2023
@github-actions

github-actions Bot commented Oct 2, 2023

Copy link
Copy Markdown
Contributor

Binder 👈 Launch a Binder on branch jtpio/notebook/fix-lint

Comment thread notebook/app.py

HERE = os.path.dirname(__file__)

Flags = t.Dict[t.Union[str, t.Tuple[str, ...]], t.Tuple[t.Union[t.Dict[str, t.Any], Config], str]]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

cc @blink1073

Wondering if there would be a better / simpler way to handle this in downstream apps?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm working on making them just dict[str, Any] in Application and JupyterApp, rather than trying to be more specific. https://github.com/ipython/traitlets/pull/873/files#diff-5453d413070d06bcf7ba7f017b9cf364e774627fad69964a6471449e5c16dc37R371

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok thanks!

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@jtpio
jtpio merged commit 46fed87 into jupyter:main Oct 3, 2023
@jtpio
jtpio deleted the fix-lint branch October 3, 2023 06:04
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing lint check with the latest traitlets

2 participants