File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
jupyter_server/services/sessions Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
import os
5
5
import pathlib
6
6
import uuid
7
- from typing import Dict
7
+ from typing import Dict , List
8
8
9
9
try :
10
10
import sqlite3
@@ -73,7 +73,7 @@ def __eq__(self, other: object) -> bool:
73
73
)
74
74
return False
75
75
76
- def update (self , other : " KernelSessionRecord" ) -> None :
76
+ def update (self , other : KernelSessionRecord ) -> None :
77
77
"""Updates in-place a kernel from other (only accepts positive updates"""
78
78
if not isinstance (other , KernelSessionRecord ):
79
79
raise TypeError ("'other' must be an instance of KernelSessionRecord." )
@@ -97,7 +97,9 @@ class KernelSessionRecordList:
97
97
it will be appended.
98
98
"""
99
99
100
- def __init__ (self , * records ):
100
+ _records : List [KernelSessionRecord ]
101
+
102
+ def __init__ (self , * records : KernelSessionRecord ):
101
103
self ._records = []
102
104
for record in records :
103
105
self .update (record )
You can’t perform that action at this time.
0 commit comments