Here’s something I noticed a while ago that’s puzzled me ever since. For stub-only packages published as a separate distribution/project from the runtime package, there’s two things that need to indicate that relationship: the installed package’s name and the distribution’s name.
-
PEP 561 standardizes the package name as
pkgname-stubs
. -
For dist name, I guess there’s no equivalent “official” standard, but typeshed uses
types-distname
for the stub projects it publishes. I’ve seen other choices, like somemypy-distname
.
I know there’s no technical requirement for package and dist names to match, but I think it’s generally recommended unless there’s a reason not, and in this case it seems like it would be more intuitive. Is the disagreement just an accident?