Skip to content

Commit

Permalink
Use dict literals
Browse files Browse the repository at this point in the history
Co-authored-by: Albert Tugushev <albert@tugushev.ru>
  • Loading branch information
astrojuanlu and atugushev committed Feb 15, 2021
1 parent 3a53732 commit 029df5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piptools/scripts/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def cli(
# We explicitly set extra=None to filter out optional requirements
# since evaluating an extra marker with no environment raises UndefinedEnvironmentName
# (see https://packaging.pypa.io/en/latest/markers.html#usage)
or req.markers.evaluate(dict(extra=None))
or req.markers.evaluate({"extra": None})
]

log.debug("Using indexes:")
Expand Down

0 comments on commit 029df5d

Please sign in to comment.