Apply suggestions from code review
Co-authored-by: Joe Rickerby <joerick@mac.com>
This commit is contained in:
co-authored by
Joe Rickerby
parent
534cada6a5
commit
c302a1d7f9
@@ -21,7 +21,7 @@ class cached_property(Generic[_T]):
|
||||
if self.attrname is None:
|
||||
self.attrname = name
|
||||
elif name != self.attrname:
|
||||
msg = "Cannot assign the same cached_property to two different names ({self.attrname!r} and {name!r})."
|
||||
msg = f"Cannot assign the same cached_property to two different names ({self.attrname!r} and {name!r})."
|
||||
raise TypeError(msg)
|
||||
|
||||
@overload
|
||||
|
||||
@@ -197,7 +197,7 @@ def build_description_from_identifier(identifier: str) -> str:
|
||||
elif python_interpreter == "pp":
|
||||
build_description += "PyPy"
|
||||
else:
|
||||
msg = "unknown python {python_interpreter!r}"
|
||||
msg = f"unknown python {python_interpreter!r}"
|
||||
raise Exception(msg)
|
||||
|
||||
build_description += f" {python_version[0]}.{python_version[1:]} "
|
||||
|
||||
Reference in New Issue
Block a user