-
Notifications
You must be signed in to change notification settings - Fork 121
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
Compat with typed pyproject-hooks #601
Conversation
src/build/__init__.py
Outdated
cwd: str | None = None, | ||
extra_environ: Mapping[str, str] | None = None, | ||
) -> None: | ||
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can set ...
as uncoverable in coverage's config.
|
||
from collections.abc import Iterator, Set | ||
|
||
if sys.version_info >= (3, 8): | ||
from typing import Protocol as Protocol | ||
elif typing.TYPE_CHECKING: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This too
Consider using |
|
All of our other types are also available at runtime, so it'd be odd for this one not to be. |
Look at the PR again. ;) |
a9467d6
to
d215353
Compare
d215353
to
a29804d
Compare
Seems it stalled, @layday let me know if you want to pick it up again and we can reopen. |
This was in draft until a version of pyproject-hooks is released with type hints, which hasn't happened yet. |
No description provided.