Skip to content

Commit

Permalink
Fix typings (#7104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio authored Oct 12, 2023
1 parent 9fa4a2c commit c4b181a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebook/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from jupyter_server.serverapp import flags
from jupyter_server.utils import url_escape, url_is_absolute
from jupyter_server.utils import url_path_join as ujoin
from jupyterlab.commands import ( # type:ignore[import]
from jupyterlab.commands import ( # type:ignore[import-untyped]
get_app_dir,
get_user_settings_dir,
get_workspaces_dir,
Expand All @@ -29,7 +29,7 @@
recursive_update,
)
from jupyterlab_server.handlers import _camelCase, is_url
from notebook_shim.shim import NotebookConfigShimMixin # type:ignore[import]
from notebook_shim.shim import NotebookConfigShimMixin # type:ignore[import-untyped]
from tornado import web
from traitlets import Bool, Unicode, default
from traitlets.config.loader import Config
Expand All @@ -50,7 +50,7 @@ class NotebookBaseHandler(ExtensionHandlerJinjaMixin, ExtensionHandlerMixin, Jup
"""The base notebook API handler."""

@property
def custom_css(self) -> bool:
def custom_css(self) -> t.Any:
return self.settings.get("custom_css", True)

def get_page_config(self) -> dict[str, t.Any]:
Expand Down

0 comments on commit c4b181a

Please sign in to comment.