File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
kernel_gateway/notebook_http Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import re
6
6
import sys
7
+ from traitlets import Unicode
7
8
from traitlets .config .configurable import LoggingConfigurable
8
9
9
10
def first_path_param_index (endpoint ):
@@ -63,8 +64,8 @@ class APICellParser(LoggingConfigurable):
63
64
api_response_indicator : str
64
65
Regex pattern for API response metadata annotations
65
66
"""
66
- api_indicator = r'{}\s+(GET|PUT|POST|DELETE)\s+(\/.*)+'
67
- api_response_indicator = r'{}\s+ResponseInfo\s+(GET|PUT|POST|DELETE)\s+(\/.*)+'
67
+ api_indicator = Unicode ( default_value = r'{}\s+(GET|PUT|POST|DELETE)\s+(\/.*)+' )
68
+ api_response_indicator = Unicode ( default_value = r'{}\s+ResponseInfo\s+(GET|PUT|POST|DELETE)\s+(\/.*)+' )
68
69
69
70
def __init__ (self , comment_prefix , * args , ** kwargs ):
70
71
super (APICellParser , self ).__init__ (* args , ** kwargs )
Original file line number Diff line number Diff line change 5
5
import json
6
6
import re
7
7
from kernel_gateway .notebook_http .cell .parser import first_path_param_index , APICellParser
8
- from traitlets import default
8
+ from traitlets import List , Unicode
9
9
from traitlets .config .configurable import LoggingConfigurable
10
10
11
11
def _swaggerlet_from_markdown (cell_source ):
@@ -62,9 +62,9 @@ class SwaggerCellParser(LoggingConfigurable):
62
62
operation_response_indicator : str
63
63
Regex pattern for API response metadata annotations
64
64
"""
65
- operation_indicator = r'{}\s*operationId:\s*(.*)'
66
- operation_response_indicator = r'{}\s*ResponseInfo\s+operationId:\s*(.*)'
67
- notebook_cells = []
65
+ operation_indicator = Unicode ( default_value = r'{}\s*operationId:\s*(.*)' )
66
+ operation_response_indicator = Unicode ( default_value = r'{}\s*ResponseInfo\s+operationId:\s*(.*)' )
67
+ notebook_cells = List ()
68
68
69
69
def __init__ (self , comment_prefix , * args , ** kwargs ):
70
70
super (SwaggerCellParser , self ).__init__ (* args , ** kwargs )
You can’t perform that action at this time.
0 commit comments