Skip to content

Commit d4b8321

Browse files
committed
lint more
1 parent a391177 commit d4b8321

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/replicate/lib/cog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Cog integration utilities for Replicate."""
22

33
import os
4-
from typing import Any, Union, Callable, Iterator, cast
4+
from typing import Any, Union, Iterator, cast
55

66
from replicate._utils._logs import logger
77

@@ -23,7 +23,7 @@ def _get_api_token_from_environment() -> Union[str, None]:
2323

2424
# Get the items method and call it
2525
items_method = getattr(context, "items", None)
26-
if not isinstance(items_method, Callable):
26+
if not callable(items_method):
2727
return os.environ.get("REPLICATE_API_TOKEN")
2828

2929
# Iterate through context items looking for the API token

0 commit comments

Comments
 (0)