File tree Expand file tree Collapse file tree 7 files changed +9
-5
lines changed
Expand file tree Collapse file tree 7 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 7474 - id : rst-inline-touching-normal
7575
7676 - repo : https://github.com/astral-sh/ruff-pre-commit
77- rev : v0.2.0
77+ rev : v0.11.4
7878 hooks :
7979 - id : ruff
8080 types_or : [python, jupyter]
Original file line number Diff line number Diff line change 11"""
22store the current version info of the server.
33"""
4+
45import re
56
67# Version string must appear intact for hatch versioning
Original file line number Diff line number Diff line change @@ -780,9 +780,9 @@ def run_closure(self: threading.Thread):
780780 for stream in [stdout , stderr ]:
781781 if isinstance (stream , OutStream ):
782782 if parent == kernel_thread_ident :
783- stream ._thread_to_parent_header [
784- self . ident
785- ] = kernel . _new_threads_parent_header
783+ stream ._thread_to_parent_header [self . ident ] = (
784+ kernel . _new_threads_parent_header
785+ )
786786 else :
787787 stream ._thread_to_parent [self .ident ] = parent
788788 _threading_Thread_run (self )
Original file line number Diff line number Diff line change 7272
7373def _accepts_parameters (meth , param_names ):
7474 parameters = inspect .signature (meth ).parameters
75- accepts = { param : False for param in param_names }
75+ accepts = dict . fromkeys ( param_names , False )
7676
7777 for param in param_names :
7878 param_spec = parameters .get (param )
Original file line number Diff line number Diff line change 11"""A thread for a shell channel."""
2+
23from __future__ import annotations
34
45from typing import Any
Original file line number Diff line number Diff line change 11"""Manager of subshells in a kernel."""
2+
23from __future__ import annotations
34
45import json
Original file line number Diff line number Diff line change 11"""Base class for threads."""
2+
23from threading import Thread
34
45from tornado .ioloop import IOLoop
You can’t perform that action at this time.
0 commit comments