Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

meta: add SimplePath protocol for PathDistribution#315

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jaraco merged 5 commits intopython:mainfromFFY00:pathdistribution-type-hint
May 26, 2021

Conversation

@FFY00
Copy link
Member

This is needed to properly annotate code that uses PathDistribution,
otherwise I need to keep redefining the protocol in my code.

Signed-off-by: Filipe Laínslains@riseup.net

@FFY00FFY00force-pushed thepathdistribution-type-hint branch from5f23a8a tod0616a8CompareMay 24, 2021 14:57
This is needed to properly annotate code that uses PathDistribution,otherwise I need to keep redefining the protocol in my code.Signed-off-by: Filipe Laíns <lains@riseup.net>
@FFY00FFY00force-pushed thepathdistribution-type-hint branch fromd0616a8 tofa20a0aCompareMay 24, 2021 15:02
@jaracojaraco changed the titlemeta: add Path protocol for PathDistributionmeta: add SimplePath protocol for PathDistributionMay 26, 2021
@FFY00
Copy link
MemberAuthor

Please ping me when this goes to CPython, so that I can send a PR to typeshed.

@jaraco
Copy link
Member

I don't understand the diffcov failure. It says:

importlib_metadata/__init__.py (0.0%): Missing lines 26,786

It indicates thatline 26 is not covered andline 786 is not covered.

But those lines should be executed on import.

@jaracojaraco merged commit5a4699d intopython:mainMay 26, 2021
@jaraco
Copy link
Member

I just ignored the spurious diffcov failure.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@FFY00@jaraco

[8]ページ先頭

©2009-2025 Movatter.jp