Skip to content

Commit

Permalink
mypy considers the output as a generic object
Browse files Browse the repository at this point in the history
  • Loading branch information
JAlvarezJarreta committed May 13, 2024
1 parent eade269 commit 4efe3f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/tests/database/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"""

from pathlib import Path
from typing import Dict, List, Optional, Union
from typing import Any, Dict, List, Optional
from unittest.mock import call, Mock, patch

from deepdiff import DeepDiff
Expand Down Expand Up @@ -129,7 +129,7 @@ def test_format_db_data(
output: Expected list of dictionaries with metadata per database.
"""

def _get_meta_value(meta_key: str) -> Optional[Union[int, str]]:
def _get_meta_value(meta_key: str) -> Optional[Any]:
"""Return empty string if "species.division" is requested in BRC mode, "Metazoa" otherwise."""
if (meta_key == "species.division") and brc_mode:
return ""
Expand Down

0 comments on commit 4efe3f5

Please sign in to comment.