Skip to content

Commit

Permalink
Use {} instead of dict()
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru committed Mar 3, 2025
1 parent 17442ed commit cf45328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/conda_package_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _parse_package_versions(env_export: str) -> dict[str, set[str]]:
# since we only manage packages installed through mamba here
# They are represented by a dict with a key 'pip'
dependencies = filter(lambda x: isinstance(x, str), dependencies)
packages_dict: dict[str, set[str]] = dict()
packages_dict: dict[str, set[str]] = {}
for split in map(lambda x: re.split("=?=", x), dependencies):
# default values
package = split[0]
Expand Down

0 comments on commit cf45328

Please sign in to comment.