Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Aug 6, 2024
1 parent 23f3625 commit 5ed5a46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rattler_build_conda_compat/modify_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import io
import logging
import re
from typing import TYPE_CHECKING, Any, Literal, Set
from typing import TYPE_CHECKING, Any, Literal

import requests
from ruamel.yaml import YAML
Expand Down Expand Up @@ -107,9 +107,9 @@ def update_hash(source: Source, url: str, hash_: Hash | None) -> None:
* `url` - The URL to download and hash (if no hash is provided).
* `hash_` - The hash to use. If not provided, the file will be downloaded and `sha256` hashed.
"""
hash_type : HashType = hash_.hash_type if hash_ is not None else "sha256"
hash_type: HashType = hash_.hash_type if hash_ is not None else "sha256"
# delete all old hashes that we are not updating
all_hash_types: Set[HashType] = {"md5", "sha256"}
all_hash_types: set[HashType] = {"md5", "sha256"}
for key in all_hash_types - {hash_type}:
if key in source:
del source[key]
Expand Down

0 comments on commit 5ed5a46

Please sign in to comment.