Skip to content

Commit 1f49a81

Browse files
Apply suggestions from code review
1 parent 771046c commit 1f49a81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/setuptools_scm/_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def command(opts: argparse.Namespace, version: str, config: Configuration) -> in
113113
if opts.query is None:
114114
opts.query = []
115115

116-
if opts.no_version is False:
116+
if not opts.no_version:
117117
data["version"] = version
118118

119119
if "files" in opts.query:
@@ -143,7 +143,7 @@ def command(opts: argparse.Namespace, version: str, config: Configuration) -> in
143143
return 0
144144

145145

146-
def _print_plain(data: dict[Any, Any]) -> None:
146+
def _print_plain(data: dict[str, Any]) -> None:
147147
version = data.pop("version", None)
148148
if version:
149149
print(version)
@@ -157,7 +157,7 @@ def _print_plain(data: dict[Any, Any]) -> None:
157157
print("\n".join(data.values()))
158158

159159

160-
def _print_key_value(data: dict[Any, Any]) -> None:
160+
def _print_key_value(data: dict[str, Any]) -> None:
161161
for key, value in data.items():
162162
if isinstance(value, str):
163163
print(f"{key} = {value}")

0 commit comments

Comments
 (0)