Skip to content

Commit

Permalink
Three more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Sep 11, 2024
1 parent d15ca77 commit 2f09333
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def arxiv_to_text(id: str, output_dir: str) -> str:
output path to the downloaded TeX file
"""

import arxiv # type:ignore[import-not-found]
import arxiv # type:ignore[import-not-found,import-untyped]

outfile = f"{id}-{datetime.now():%Y-%m-%d-%H-%M}.tex"
download_filename = "downloaded-paper.tar.gz"
Expand Down
5 changes: 3 additions & 2 deletions packages/jupyter-ai/jupyter_ai/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def get_chat_user(self) -> ChatUser:
environment."""
# Get a dictionary of all loaded extensions.
# (`serverapp` is a property on all `JupyterHandler` subclasses)
assert self.serverapp
extensions = self.serverapp.extension_manager.extensions
collaborative = (
"jupyter_collaboration" in extensions
Expand Down Expand Up @@ -512,7 +513,7 @@ def post(self):

class ApiKeysHandler(BaseAPIHandler):
@property
def config_manager(self) -> ConfigManager:
def config_manager(self) -> ConfigManager: # type:ignore[override]
return self.settings["jai_config_manager"]

@web.authenticated
Expand All @@ -527,7 +528,7 @@ class SlashCommandsInfoHandler(BaseAPIHandler):
"""List slash commands that are currently available to the user."""

@property
def config_manager(self) -> ConfigManager:
def config_manager(self) -> ConfigManager: # type:ignore[override]
return self.settings["jai_config_manager"]

@property
Expand Down

0 comments on commit 2f09333

Please sign in to comment.