Skip to content
Discussion options

You must be logged in to vote

Hi Ju4tCode (@yanyongyu), hope you're doing well! Thanks for the really careful write up, and thanks 배경한 | Kyunghan Bae (@qorud02) for the version comparison, it pointed me at the right place.

Short answer: it isn't a general cost of namespace packages. It comes from one pattern in the generated githubkit_schemas/latest/models.py and latest/types.py: each imports 4552 names as 4552 separate from githubkit_schemas.v2026_03_10.models import X as X statements, and because the top level githubkit_schemas is a namespace, pyright ignores its import cache for every one of them. Collapsing those into one from ... import (...) statement per module brings the old numbers back while keeping the name…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@yanyongyu
Comment options

@yanyongyu
Comment options

Answer selected by yanyongyu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants