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

Use f-strings instead of repr()#5010

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

Open
DimitriPapadopoulos wants to merge1 commit intopypa:main
base:main
Choose a base branch
Loading
fromDimitriPapadopoulos:repr
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use f-strings instead of repr()
  • Loading branch information
@DimitriPapadopoulos
DimitriPapadopoulos committedJul 31, 2025
commit31c7db79afeebcf5e2d107457bc9ba8b742e6ce5
4 changes: 2 additions & 2 deletionspkg_resources/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -304,7 +304,7 @@ class ResolutionError(Exception):
"""Abstract base for dependency resolution errors"""

def __repr__(self) -> str:
return self.__class__.__name__ + repr(self.args)
returnf"{self.__class__.__name__}{self.args!r}"


class VersionConflict(ResolutionError):
Expand DownExpand Up@@ -3330,7 +3330,7 @@ def has_version(self) -> bool:
try:
self.version
except ValueError:
issue_warning("Unbuilt egg for" + repr(self))
issue_warning(f"Unbuilt egg for{self!r}")
return False
except SystemError:
# TODO: remove this except clause when python/cpython#103632 is fixed.
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp