diff --git a/jupyter_server/auth/identity.py b/jupyter_server/auth/identity.py index 018a9622b4..72f4b469e0 100644 --- a/jupyter_server/auth/identity.py +++ b/jupyter_server/auth/identity.py @@ -709,9 +709,9 @@ def get_user(self, handler: JupyterHandler) -> User | None: @property def login_available(self): - return self.login_handler_class.get_login_available( + return self.login_handler_class.get_login_available( # type:ignore[attr-defined] self.settings - ) # type:ignore[attr-defined] + ) def should_check_origin(self, handler: JupyterHandler) -> bool: """Whether we should check origin.""" @@ -734,6 +734,6 @@ def validate_security( self.log.critical(_i18n("Hint: run the following command to set a password")) self.log.critical(_i18n("\t$ python -m jupyter_server.auth password")) sys.exit(1) - return self.login_handler_class.validate_security( + return self.login_handler_class.validate_security( # type:ignore[attr-defined] app, ssl_options - ) # type:ignore[attr-defined] + ) diff --git a/jupyter_server/serverapp.py b/jupyter_server/serverapp.py index 32b35dc85e..09c2078871 100644 --- a/jupyter_server/serverapp.py +++ b/jupyter_server/serverapp.py @@ -1880,8 +1880,8 @@ def init_configurables(self): self.gateway_config = GatewayClient.instance(parent=self) if not issubclass( - self.kernel_manager_class, AsyncMappingKernelManager - ): # type:ignore[arg-type] + self.kernel_manager_class, AsyncMappingKernelManager # type:ignore[arg-type] + ): warnings.warn( "The synchronous MappingKernelManager class is deprecated and will not be supported in Jupyter Server 3.0", DeprecationWarning, @@ -1889,8 +1889,8 @@ def init_configurables(self): ) if not issubclass( - self.contents_manager_class, AsyncContentsManager - ): # type:ignore[arg-type] + self.contents_manager_class, AsyncContentsManager # type:ignore[arg-type] + ): warnings.warn( "The synchronous ContentsManager classes are deprecated and will not be supported in Jupyter Server 3.0", DeprecationWarning,