Skip to content

Commit 17d4647

Browse files
committed
fix(oci): cover both import-untyped and import-not-found for oci SDK
When oci is installed but lacks stubs, mypy raises import-untyped. When oci is not installed (optional dep), mypy raises import-not-found. Cover both cases since cohere[oci] is optional.
1 parent b1ed6d5 commit 17d4647

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cohere/manually_maintained/lazy_oci_deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def lazy_oci() -> Any:
2424
ImportError: If the OCI SDK is not installed
2525
"""
2626
try:
27-
import oci # type: ignore[import-untyped]
27+
import oci # type: ignore[import-untyped, import-not-found]
2828
return oci
2929
except ImportError:
3030
raise ImportError(OCI_INSTALLATION_MESSAGE)

0 commit comments

Comments
 (0)