Fix a bug

This commit is contained in:
c-bata
2023-08-08 12:17:04 +09:00
parent 1ed62c3a69
commit 768d27b47c
@@ -13,7 +13,7 @@ if TYPE_CHECKING:
def is_artifact_backend(store: ArtifactBackend | ArtifactStore) -> TypeGuard[ArtifactBackend]:
return getattr(store, "open_reader") is None
return getattr(store, "open_reader", None) is None
def to_artifact_store(store: ArtifactBackend | ArtifactStore) -> ArtifactStore: