File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1616class KernelSpecResourceHandler (web .StaticFileHandler , JupyterHandler ):
1717 """A Kernelspec resource handler."""
1818
19- SUPPORTED_METHODS = ("GET" , "HEAD" ) # type:ignore[assignment]
19+ SUPPORTED_METHODS = ("GET" , "HEAD" ) # type:ignore[assignment]
2020 auth_resource = AUTH_RESOURCE
2121
2222 def initialize (self ):
Original file line number Diff line number Diff line change @@ -209,17 +209,17 @@ def start(self, port: int) -> None:
209209 def start_metrics_loop ():
210210 loop = tornado .ioloop .IOLoop ()
211211 loop .make_current ()
212-
212+
213213 # Set up periodic updates in this IOLoop
214214 def periodic_update_wrapper ():
215- if hasattr (self , ' _periodic_update' ):
215+ if hasattr (self , " _periodic_update" ):
216216 self ._periodic_update ()
217217 # Schedule next update in 30 seconds
218218 loop .call_later (30 , periodic_update_wrapper )
219-
219+
220220 # Start periodic updates
221221 loop .call_later (30 , periodic_update_wrapper )
222-
222+
223223 loop .start ()
224224
225225 self .thread = threading .Thread (target = start_metrics_loop , daemon = True )
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ class NotebooksRedirectHandler(JupyterHandler):
400400 "PATCH" ,
401401 "POST" ,
402402 "DELETE" ,
403- ) # type:ignore[assignment]
403+ ) # type:ignore[assignment]
404404
405405 @allow_unauthenticated
406406 def get (self , path ):
You can’t perform that action at this time.
0 commit comments