Skip to content

Question about accepted names for type stub–only packages #1503

Discussion options

You must be logged in to vote

One point to understand here is the difference between distributions (the things you install) and packages (the things you import, or the names of directories in site-packages). PEP 561 is clear that the package must be named widget-stubs, and that's what type checkers will look for on the file system. However, the distribution, the thing you install, is conventionally called types-widget. It's unfortunate that the two names don't match, but perhaps difficult to fix now.

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@Sachaa-Thanasius
Comment options

@JelleZijlstra
Comment options

@Sachaa-Thanasius
Comment options

@JelleZijlstra
Comment options

Answer selected by Sachaa-Thanasius
Comment options

You must be logged in to vote
1 reply
@Sachaa-Thanasius
Comment options

Comment options

You must be logged in to vote
5 replies
@henribru
Comment options

@srittau
Comment options

@Josverl
Comment options

@hauntsaninja
Comment options

@Josverl
Comment options

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