Question about pyi file #2012
-
Hi, Why is this declaration required? Seems redundant but just trying to understand: |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
Mar 9, 2023
Replies: 1 comment
-
We have a system that lazy loads modules, so you can import one or two widgets without importing everything. Works great, but it broken typing. The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
davep
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have a system that lazy loads modules, so you can import one or two widgets without importing everything. Works great, but it broken typing. The
.pyi
allows type checkers to understand the types without the lazy loading getting in the way.