Skip to content

Commit

Permalink
refactor: type hints fixes following deps updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed Jul 23, 2024
1 parent ea47135 commit c85ba13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion eodag/plugins/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ def __init__(self, providers_config: Dict[str, ProviderConfig]) -> None:
"Check that the plugin module (%s) is importable",
entry_point.module_name,
)
if entry_point.dist and entry_point.dist.key != "eodag":
if (
entry_point.dist
and entry_point.dist.key != "eodag"
and entry_point.dist.location is not None
):
# use plugin providers if any
plugin_providers_config_path = [
str(x)
Expand Down
3 changes: 2 additions & 1 deletion eodag/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
Any,
Callable,
Dict,
Iterable,
Iterator,
List,
Mapping,
Expand Down Expand Up @@ -1435,7 +1436,7 @@ def cast_scalar_value(value: Any, new_type: Any) -> Any:
class StreamResponse:
"""Represents a streaming response"""

content: Iterator[bytes]
content: Iterable[bytes]
headers: Optional[Mapping[str, str]] = None
media_type: Optional[str] = None
status_code: Optional[int] = None
Expand Down

0 comments on commit c85ba13

Please sign in to comment.