Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Conversation

layday
Copy link
Member

@layday layday commented Apr 8, 2023

No description provided.

cwd: str | None = None,
extra_environ: Mapping[str, str] | None = None,
) -> None:
...
Copy link
Contributor

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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This too

@pradyunsg
Copy link
Member

Consider using from pyproject_hooks import SubprocessRunner behind a TYPE_CHECKING conditional instead of redefining the protocol.

@layday
Copy link
Member Author

layday commented Apr 8, 2023

Consider using from pyproject_hooks import SubprocessRunner behind a TYPE_CHECKING conditional instead of redefining the protocol.

SubprocessRunner is not public :)

@layday
Copy link
Member Author

layday commented Apr 8, 2023

All of our other types are also available at runtime, so it'd be odd for this one not to be.

@pradyunsg
Copy link
Member

Look at the PR again. ;)

@gaborbernat
Copy link
Contributor

Seems it stalled, @layday let me know if you want to pick it up again and we can reopen.

@gaborbernat gaborbernat closed this Feb 1, 2024
@layday
Copy link
Member Author

layday commented Feb 1, 2024

This was in draft until a version of pyproject-hooks is released with type hints, which hasn't happened yet.

@layday layday deleted the fix-runner-type branch March 1, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants