diff --git a/packages/jupyter-ai/jupyter_ai/utils.py b/packages/jupyter-ai/jupyter_ai/utils.py index 3bb48d515..5706315dd 100644 --- a/packages/jupyter-ai/jupyter_ai/utils.py +++ b/packages/jupyter-ai/jupyter_ai/utils.py @@ -4,7 +4,7 @@ class LLMErrorUtilBase: @staticmethod - def is_api_key_exc(e: Exception): + def is_api_key_exc(_: Exception): """ Determine if the exception is an API key error. Should be implemented by subclasses. """ @@ -36,7 +36,7 @@ def is_api_key_exc(e: Exception): class AnthropicErrorUtility(LLMErrorUtilBase): @staticmethod - def is_api_key_exc(e): + def is_api_key_exc(e: Exception): """ Determine if the exception is an Anthropic API key error. """