-
Notifications
You must be signed in to change notification settings - Fork 0
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
coherent.deps.pypi.NoDistributionForImport: _typeshed.StrPath #8
Comments
Yup, that was my change. I added a special import of a symbol from |
If that's a big issue for now, you could simply use |
Oh, sorry. Writing from my work account. |
Indeed, that root module doesn't show up in the database.
Who supplies |
Type checkers. Mypy and pyright see |
Perhaps |
Exactly. I think the same. 👍 |
I added #11 to track the desired behavior, but now that I think about it, even if that feature were enabled, it wouldn't help with this issue, because even in the type-checking regime, that name doesn't resolve to a package. It will always need to be special-cased, as it's a magical name (not supplied by any wheel). |
Yes. We can identify them as they occur in typeshed. However, let's track |
There are several places where I can filter out "excluded" or "magic" or "hidden" imports.
The last option is the most invasive, and requires making a new release of both packages, but it also feels like the most correct to me. The advantage of that approach is that other callers could potentially examine these imports and treat them differently (a lower level interface remains unfiltered) and the data models are symmetric ( |
I wonder if any top-level name that begins with an underscore should be considered private and excluded. I'm leaning no. Even if a user were to |
Now a name is not checked for stdlib relevance if it's relative. Ref #8.
Attempting to build the project emits:
The text was updated successfully, but these errors were encountered: