Skip to content

Commit 3e5cc24

Browse files
rectify flake8 issues
1 parent a7ab513 commit 3e5cc24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setuptools_scm/integration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ def version_keyword(dist, keyword, value):
1515
if getattr(value, '__call__', None):
1616
value = value()
1717
# this piece of code is a hack to counter the mistake in root finding
18-
if any(iter_matching_entrypoints('.', 'setuptools_scm.parse_scm_fallback')):
18+
matching_fallbacks = iter_matching_entrypoints(
19+
'.', 'setuptools_scm.parse_scm_fallback')
20+
if any(matching_fallbacks):
1921
value.pop('root', None)
2022
dist.metadata.version = get_version(**value)
2123

0 commit comments

Comments
 (0)