Skip to content

Commit fa06d46

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4838ee4 commit fa06d46

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

jupyter_server/kernelspecs/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class 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):

jupyter_server/prometheus/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

jupyter_server/services/contents/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)