@@ -1255,8 +1255,7 @@ def _default_allow_remote(self) -> bool:
1255
1255
# scoped to the loopback interface. For now, we'll assume that
1256
1256
# any scoped link-local address is effectively local.
1257
1257
if not (
1258
- parsed .is_loopback
1259
- or (("%" in addr ) and parsed .is_link_local ) # type:ignore[operator]
1258
+ parsed .is_loopback or (("%" in addr ) and parsed .is_link_local ) # type:ignore[operator]
1260
1259
):
1261
1260
return True
1262
1261
return False
@@ -1885,7 +1884,8 @@ def init_configurables(self) -> None:
1885
1884
self .gateway_config = GatewayClient .instance (parent = self )
1886
1885
1887
1886
if not issubclass (
1888
- self .kernel_manager_class , AsyncMappingKernelManager # type:ignore[arg-type]
1887
+ self .kernel_manager_class , # type:ignore[arg-type]
1888
+ AsyncMappingKernelManager ,
1889
1889
):
1890
1890
warnings .warn (
1891
1891
"The synchronous MappingKernelManager class is deprecated and will not be supported in Jupyter Server 3.0" ,
@@ -1894,7 +1894,8 @@ def init_configurables(self) -> None:
1894
1894
)
1895
1895
1896
1896
if not issubclass (
1897
- self .contents_manager_class , AsyncContentsManager # type:ignore[arg-type]
1897
+ self .contents_manager_class , # type:ignore[arg-type]
1898
+ AsyncContentsManager ,
1898
1899
):
1899
1900
warnings .warn (
1900
1901
"The synchronous ContentsManager classes are deprecated and will not be supported in Jupyter Server 3.0" ,
@@ -1967,9 +1968,7 @@ def init_configurables(self) -> None:
1967
1968
f"Ignoring deprecated config ServerApp.login_handler_class={ self .login_handler_class } ."
1968
1969
" Superseded by ServerApp.identity_provider_class={self.identity_provider_class}."
1969
1970
)
1970
- self .identity_provider = self .identity_provider_class (
1971
- ** identity_provider_kwargs
1972
- ) # type:ignore[operator]
1971
+ self .identity_provider = self .identity_provider_class (** identity_provider_kwargs ) # type:ignore[operator]
1973
1972
1974
1973
if self .identity_provider_class is LegacyIdentityProvider :
1975
1974
# legacy config stored the password in tornado_settings
0 commit comments