Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarJMue committed Jul 19, 2024
1 parent 8e216cf commit 6a25b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elli/dispersions/base_dispersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self, *args, **kwargs):
self.hash_single_params = None
self.hash_rep_params = None

def _hash_params(self, params: dict | list[dict]) -> int:
def _hash_params(self, params: Union[dict, List[dict]]) -> int:
"""Creates an single_params_dict or the repeating_params_list."""
if isinstance(params, list):
return hash(tuple([self._hash_params(dictionary) for dictionary in params]))
Expand Down

0 comments on commit 6a25b26

Please sign in to comment.