Skip to content

Commit

Permalink
Merge pull request #2043 from python-gitlab/jlvillal/f-string
Browse files Browse the repository at this point in the history
chore: require f-strings
  • Loading branch information
nejch committed Jun 1, 2022
2 parents 7119f2d + 96e994d commit 3d000d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gitlab/base.py
Expand Up @@ -73,9 +73,9 @@ def __init__(
) -> None:
if not isinstance(attrs, dict):
raise GitlabParsingError(
"Attempted to initialize RESTObject with a non-dictionary value: "
"{!r}\nThis likely indicates an incorrect or malformed server "
"response.".format(attrs)
f"Attempted to initialize RESTObject with a non-dictionary value: "
f"{attrs!r}\nThis likely indicates an incorrect or malformed server "
f"response."
)
self.__dict__.update(
{
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Expand Up @@ -51,7 +51,6 @@ disable = [
"arguments-renamed",
"attribute-defined-outside-init",
"broad-except",
"consider-using-f-string",
"consider-using-generator",
"consider-using-sys-exit",
"cyclic-import",
Expand Down

0 comments on commit 3d000d3

Please sign in to comment.