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

More Typing Adoption #873

Merged
merged 19 commits into from
Oct 3, 2023
Prev Previous commit
Next Next commit
fix test
blink1073 committed Sep 30, 2023
commit 4811b59ff40ff40a1499def3d44b2d1b9c3307aa
6 changes: 4 additions & 2 deletions tests/test_typing.py
Original file line number Diff line number Diff line change
@@ -137,8 +137,10 @@ class KernelSpecManager(HasTraits):

t = KernelSpecManager()
reveal_type(
Type(KernelSpec)
) # R: traitlets.traitlets.Type[def () -> tests.test_typing.KernelSpec@124, def () -> tests.test_typing.KernelSpec@124]
Type(
KernelSpec
) # R: traitlets.traitlets.Type[def () -> tests.test_typing.KernelSpec@124, def () -> tests.test_typing.KernelSpec@124]
)
reveal_type(t.kernel_spec_class) # R: def () -> tests.test_typing.KernelSpec@124
reveal_type(t.kernel_spec_class()) # R: tests.test_typing.KernelSpec@124
reveal_type(t.kernel_spec_class().item) # R: builtins.str