File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2850,9 +2850,9 @@ def enable_reporting_api(
28502850
28512851
28522852def load_network_resource (
2853- frame_id : typing .Optional [page .FrameId ] = None ,
28542853 url : str ,
2855- options : LoadNetworkResourceOptions
2854+ options : LoadNetworkResourceOptions ,
2855+ frame_id : typing .Optional [page .FrameId ] = None
28562856 ) -> typing .Generator [T_JSON_DICT ,T_JSON_DICT ,LoadNetworkResourcePageResult ]:
28572857 '''
28582858 Fetches the resource and returns the content.
Original file line number Diff line number Diff line change @@ -596,7 +596,8 @@ def generate_code(self) -> str:
596596 if self .parameters :
597597 code += '\n '
598598 code += indent (
599- ',\n ' .join (p .generate_code () for p in self .parameters ), 8 )
599+ ',\n ' .join ([p .generate_code () for p in self .parameters if not p .optional ] + [p .generate_code () for p in self .parameters if p .optional ]),
600+ 8 )
600601 code += '\n '
601602 code += indent (ret , 4 )
602603 else :
You can’t perform that action at this time.
0 commit comments