We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48acf51 commit 36c95a8Copy full SHA for 36c95a8
replicate/client.py
@@ -351,7 +351,7 @@ def close(self) -> None:
351
def _get_api_token_from_environment() -> Optional[str]:
352
"""Get API token from cog current scope if available, otherwise from environment."""
353
try:
354
- import cog
+ import cog # noqa: I001 # pyright: ignore [reportMissingImports]
355
356
for key, value in cog.current_scope().context.items():
357
if key.upper() == "REPLICATE_API_TOKEN":
0 commit comments