E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:103:15 | 101 | def declarations(rows): 102 | """Only exact registered keys; renamed similar classes never establish identity.""" 103 | classes={}; keys={}; trees={} | ^ 104 | for i,e in enumerate(rows): 105 | if not e['file'].endswith('.py'):continue | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:103:24 | 101 | def declarations(rows): 102 | """Only exact registered keys; renamed similar classes never establish identity.""" 103 | classes={}; keys={}; trees={} | ^ 104 | for i,e in enumerate(rows): 105 | if not e['file'].endswith('.py'):continue | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:105:41 | 103 | classes={}; keys={}; trees={} 104 | for i,e in enumerate(rows): 105 | if not e['file'].endswith('.py'):continue | ^ 106 | t=ast.parse((REF/e['local_file']).read_bytes());trees[i]=t 107 | for c in t.body: | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:106:56 | 104 | for i,e in enumerate(rows): 105 | if not e['file'].endswith('.py'):continue 106 | t=ast.parse((REF/e['local_file']).read_bytes());trees[i]=t | ^ 107 | for c in t.body: 108 | if isinstance(c,ast.ClassDef):classes[(e['id'],c.name)]=(i,c) | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:108:42 | 106 | t=ast.parse((REF/e['local_file']).read_bytes());trees[i]=t 107 | for c in t.body: 108 | if isinstance(c,ast.ClassDef):classes[(e['id'],c.name)]=(i,c) | ^ 109 | for a in t.body: 110 | if not isinstance(a,ast.Assign):continue | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:110:44 | 108 | if isinstance(c,ast.ClassDef):classes[(e['id'],c.name)]=(i,c) 109 | for a in t.body: 110 | if not isinstance(a,ast.Assign):continue | ^ 111 | if not any(isinstance(n,ast.Name)and n.id in ['NODE_CLASS_MAPPINGS','NODE_CONFIG']for n in a.targets):continue 112 | if not isinstance(a.value,ast.Dict):continue | E501 Line too long (122 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:111:101 | 109 | for a in t.body: 110 | if not isinstance(a,ast.Assign):continue 111 | if not any(isinstance(n,ast.Name)and n.id in ['NODE_CLASS_MAPPINGS','NODE_CONFIG']for n in a.targets):continue | ^^^^^^^^^^^^^^^^^^^^^^ 112 | if not isinstance(a.value,ast.Dict):continue 113 | for k,v in zip(a.value.keys,a.value.values): | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:111:114 | 109 | for a in t.body: 110 | if not isinstance(a,ast.Assign):continue 111 | if not any(isinstance(n,ast.Name)and n.id in ['NODE_CLASS_MAPPINGS','NODE_CONFIG']for n in a.targets):continue | ^ 112 | if not isinstance(a.value,ast.Dict):continue 113 | for k,v in zip(a.value.keys,a.value.values): | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:112:48 | 110 | if not isinstance(a,ast.Assign):continue 111 | if not any(isinstance(n,ast.Name)and n.id in ['NODE_CLASS_MAPPINGS','NODE_CONFIG']for n in a.targets):continue 112 | if not isinstance(a.value,ast.Dict):continue | ^ 113 | for k,v in zip(a.value.keys,a.value.values): 114 | if not isinstance(k,ast.Constant)or not isinstance(k.value,str):continue | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:114:80 | 112 | if not isinstance(a.value,ast.Dict):continue 113 | for k,v in zip(a.value.keys,a.value.values): 114 | if not isinstance(k,ast.Constant)or not isinstance(k.value,str):continue | ^ 115 | symbol=v.id if isinstance(v,ast.Name)else None 116 | if isinstance(v,ast.Dict): | E501 Line too long (157 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:117:101 | 115 | … 116 | … 117 | …v.values)if isinstance(kk,ast.Constant)and kk.value=='class'and isinstance(vv,ast.Name)),None) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 118 | … 119 | …f)]: | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:118:26 | 116 | … if isinstance(v,ast.Dict): 117 | … symbol=next((vv.id for kk,vv in zip(v.keys,v.values)if isinstance(kk,ast.Constant)and kk.value=='class'and isinstan… 118 | … if symbol:keys[(e['id'],k.value)]=symbol | ^ 119 | … for c in [x for x in t.body if isinstance(x,ast.ClassDef)]: 120 | … nodeid=next((kw.value.value for f in c.body if isinstance(f,ast.FunctionDef)and f.name=='define_schema'for call in ast.walk… | E501 Line too long (254 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:120:101 | 118 | … 119 | … 120 | …ame=='define_schema'for call in ast.walk(f)if isinstance(call,ast.Call)for kw in call.keywords if kw.arg=='node_id'and isinstance(kw.value,ast.Constant)),None) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 121 | … 122 | … | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:121:22 | 119 | for c in [x for x in t.body if isinstance(x,ast.ClassDef)]: 120 | nodeid=next((kw.value.value for f in c.body if isinstance(f,ast.FunctionDef)and f.name=='define_schema'for call in ast.wa… 121 | if nodeid:keys[(e['id'],nodeid)]=c.name | ^ 122 | seed_key='rgthree-comfy-42e73c3c' 123 | seed_rows={e['file']:(REF/e['local_file']).read_text() for e in rows if e['id']==seed_key} | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:132:29 | 131 | def source_key(n,rows): 132 | p=n.get('properties',{});v=p.get('ver');typ=n['type'] | ^ 133 | if typ=='4b860023-4ef2-453b-8f9a-5c554000efa1':return 'boundary' 134 | if not v:return 'unknown' | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:132:44 | 131 | def source_key(n,rows): 132 | p=n.get('properties',{});v=p.get('ver');typ=n['type'] | ^ 133 | if typ=='4b860023-4ef2-453b-8f9a-5c554000efa1':return 'boundary' 134 | if not v:return 'unknown' | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:133:51 | 131 | def source_key(n,rows): 132 | p=n.get('properties',{});v=p.get('ver');typ=n['type'] 133 | if typ=='4b860023-4ef2-453b-8f9a-5c554000efa1':return 'boundary' | ^ 134 | if not v:return 'unknown' 135 | if v.startswith('761b'):return 'missing761' | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:134:13 | 132 | p=n.get('properties',{});v=p.get('ver');typ=n['type'] 133 | if typ=='4b860023-4ef2-453b-8f9a-5c554000efa1':return 'boundary' 134 | if not v:return 'unknown' | ^ 135 | if v.startswith('761b'):return 'missing761' 136 | if v.startswith('58de'):return 'cleanup-58de13a6' | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:135:28 | 133 | if typ=='4b860023-4ef2-453b-8f9a-5c554000efa1':return 'boundary' 134 | if not v:return 'unknown' 135 | if v.startswith('761b'):return 'missing761' | ^ 136 | if v.startswith('58de'):return 'cleanup-58de13a6' 137 | if v.startswith('afeee'):return 'wascanonical-afeee09b' | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:136:28 | 134 | if not v:return 'unknown' 135 | if v.startswith('761b'):return 'missing761' 136 | if v.startswith('58de'):return 'cleanup-58de13a6' | ^ 137 | if v.startswith('afeee'):return 'wascanonical-afeee09b' 138 | return next(e['id']for e in rows if e.get('tag')in [v,'v'+v]) | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:137:29 | 135 | if v.startswith('761b'):return 'missing761' 136 | if v.startswith('58de'):return 'cleanup-58de13a6' 137 | if v.startswith('afeee'):return 'wascanonical-afeee09b' | ^ 138 | return next(e['id']for e in rows if e.get('tag')in [v,'v'+v]) | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:142:26 | 140 | def layouts(n): 141 | w=n.get('widgets_values',[]) 142 | if isinstance(w,dict):return list(w) | ^ 143 | names=[x['widget']['name']for x in n.get('inputs',[])if isinstance(x.get('widget'),dict)] 144 | if n['id']==614:names.insert(4,'control_after_generate') | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:144:20 | 142 | if isinstance(w,dict):return list(w) 143 | names=[x['widget']['name']for x in n.get('inputs',[])if isinstance(x.get('widget'),dict)] 144 | if n['id']==614:names.insert(4,'control_after_generate') | ^ 145 | if len(names)==len(w):return names 146 | if n['type']=='LoadImage':return ['image','position_1'] | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:145:26 | 143 | names=[x['widget']['name']for x in n.get('inputs',[])if isinstance(x.get('widget'),dict)] 144 | if n['id']==614:names.insert(4,'control_after_generate') 145 | if len(names)==len(w):return names | ^ 146 | if n['type']=='LoadImage':return ['image','position_1'] 147 | if n['type']=='Seed (rgthree)':return ['seed','position_1','position_2','position_3'] | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:146:30 | 144 | if n['id']==614:names.insert(4,'control_after_generate') 145 | if len(names)==len(w):return names 146 | if n['type']=='LoadImage':return ['image','position_1'] | ^ 147 | if n['type']=='Seed (rgthree)':return ['seed','position_1','position_2','position_3'] 148 | if n['type']=='Int'and len(w)==1:return ['value'] | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:147:35 | 145 | if len(names)==len(w):return names 146 | if n['type']=='LoadImage':return ['image','position_1'] 147 | if n['type']=='Seed (rgthree)':return ['seed','position_1','position_2','position_3'] | ^ 148 | if n['type']=='Int'and len(w)==1:return ['value'] 149 | if n['type']=='CLIPVisionLoader':return ['clip_name'] | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:148:37 | 146 | if n['type']=='LoadImage':return ['image','position_1'] 147 | if n['type']=='Seed (rgthree)':return ['seed','position_1','position_2','position_3'] 148 | if n['type']=='Int'and len(w)==1:return ['value'] | ^ 149 | if n['type']=='CLIPVisionLoader':return ['clip_name'] 150 | if n['type']=='CheckpointLoaderSimple':return ['ckpt_name'] | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:149:37 | 147 | if n['type']=='Seed (rgthree)':return ['seed','position_1','position_2','position_3'] 148 | if n['type']=='Int'and len(w)==1:return ['value'] 149 | if n['type']=='CLIPVisionLoader':return ['clip_name'] | ^ 150 | if n['type']=='CheckpointLoaderSimple':return ['ckpt_name'] 151 | if n['type']=='CLIPTextEncode':return ['text'] | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:150:43 | 148 | if n['type']=='Int'and len(w)==1:return ['value'] 149 | if n['type']=='CLIPVisionLoader':return ['clip_name'] 150 | if n['type']=='CheckpointLoaderSimple':return ['ckpt_name'] | ^ 151 | if n['type']=='CLIPTextEncode':return ['text'] 152 | return [f'position_{j}'for j in range(len(w))] | E701 Multiple statements on one line (colon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:151:35 | 149 | if n['type']=='CLIPVisionLoader':return ['clip_name'] 150 | if n['type']=='CheckpointLoaderSimple':return ['ckpt_name'] 151 | if n['type']=='CLIPTextEncode':return ['text'] | ^ 152 | return [f'position_{j}'for j in range(len(w))] | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:155:41 | 154 | def build(index=0): 155 | raw=(REPO/PATHS[index]).read_bytes();g=json.loads(raw) | ^ 156 | rows=json.loads((REF/'sources.json').read_bytes())['sources'] 157 | classes,keys,trees=declarations(rows) | E501 Line too long (425 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:164:101 | 162 | … 163 | … 164 | …os.path.relpath(REF/e['license_file'],OUT)if not e['license_file'].startswith('未知')else e['license_file'],lines=[1,len(data.decode().splitlines())]if data else [0,0],claim='本图准确必要文本/身份响应;仅静态核对,许可不认证模型素材,未执行;零字节原件'if not data else'本图准确必要源码或身份缺口响应;注册/协议缺口另列,不执行')) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165 | … 166 | … | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:165:14 | 163 | assert hashlib.sha256(data).hexdigest()==e['sha256'] 164 | sources.append(dict(e,local_file=os.path.relpath(REF/e['local_file'],OUT),license_file=os.path.relpath(REF/e['license_file'],… 165 | fields=[];comments=[];bindings=[];empty=[];boundaries=[];flow=[] | ^ 166 | for pre,prefix,graph in scoped_graphs(g): 167 | scope='root'if not pre else '宿主'+pre[:-1]+'内部定义' | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:165:26 | 163 | assert hashlib.sha256(data).hexdigest()==e['sha256'] 164 | sources.append(dict(e,local_file=os.path.relpath(REF/e['local_file'],OUT),license_file=os.path.relpath(REF/e['license_file'],… 165 | fields=[];comments=[];bindings=[];empty=[];boundaries=[];flow=[] | ^ 166 | for pre,prefix,graph in scoped_graphs(g): 167 | scope='root'if not pre else '宿主'+pre[:-1]+'内部定义' | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:165:38 | 163 | assert hashlib.sha256(data).hexdigest()==e['sha256'] 164 | sources.append(dict(e,local_file=os.path.relpath(REF/e['local_file'],OUT),license_file=os.path.relpath(REF/e['license_file'],… 165 | fields=[];comments=[];bindings=[];empty=[];boundaries=[];flow=[] | ^ 166 | for pre,prefix,graph in scoped_graphs(g): 167 | scope='root'if not pre else '宿主'+pre[:-1]+'内部定义' | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:165:47 | 163 | assert hashlib.sha256(data).hexdigest()==e['sha256'] 164 | sources.append(dict(e,local_file=os.path.relpath(REF/e['local_file'],OUT),license_file=os.path.relpath(REF/e['license_file'],… 165 | fields=[];comments=[];bindings=[];empty=[];boundaries=[];flow=[] | ^ 166 | for pre,prefix,graph in scoped_graphs(g): 167 | scope='root'if not pre else '宿主'+pre[:-1]+'内部定义' | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:165:61 | 163 | assert hashlib.sha256(data).hexdigest()==e['sha256'] 164 | sources.append(dict(e,local_file=os.path.relpath(REF/e['local_file'],OUT),license_file=os.path.relpath(REF/e['license_file'],… 165 | fields=[];comments=[];bindings=[];empty=[];boundaries=[];flow=[] | ^ 166 | for pre,prefix,graph in scoped_graphs(g): 167 | scope='root'if not pre else '宿主'+pre[:-1]+'内部定义' | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:170:33 | 168 | edges={e[0]if isinstance(e,list)else e['id']:e for e in graph['links']} 169 | for ni,n in enumerate(graph['nodes']): 170 | nid=pre+str(n['id']);ptr=f'{prefix}/nodes/{ni}' | ^ 171 | flow.append(nid+' 原节点完整保存 '+json.dumps(n,ensure_ascii=False)) 172 | if n['type']in ['Note','MarkdownNote']: | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:173:151 | 171 | … 172 | … 173 | …=n['widgets_values'][0],meaning=prose['notes'][nid],evidence=[]));continue | ^ 174 | …((key,symbol));schema={};candidates=[];rs=[i for i,e in enumerate(rows)if e['id']==key] 175 | … | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:174:35 | 172 | … if n['type']in ['Note','MarkdownNote']: 173 | … comments.append(dict(node_id=nid,pointer=ptr+'/widgets_values/0',text=n['widgets_values'][0],meaning=prose['notes'][nid],ev… 174 | … key=source_key(n,rows);symbol=keys.get((key,n['type']));match=classes.get((key,symbol));schema={};candidates=[];rs=[i for i,e i… | ^ 175 | … if match: 176 | … ei,c=match;schema=node_schema(c);sources.append(dict(sources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbo… | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:174:68 | 172 | … if n['type']in ['Note','MarkdownNote']: 173 | … comments.append(dict(node_id=nid,pointer=ptr+'/widgets_values/0',text=n['widgets_values'][0],meaning=prose['notes'][nid],ev… 174 | … key=source_key(n,rows);symbol=keys.get((key,n['type']));match=classes.get((key,symbol));schema={};candidates=[];rs=[i for i,e i… | ^ 175 | … if match: 176 | … ei,c=match;schema=node_schema(c);sources.append(dict(sources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbo… | invalid-syntax: Compound statements are not allowed on the same line as simple statements --> docs/hel-892/wanplus-document-evidence/build_definition.py:174:69 | 172 | … if n['type']in ['Note','MarkdownNote']: 173 | … comments.append(dict(node_id=nid,pointer=ptr+'/widgets_values/0',text=n['widgets_values'][0],meaning=prose['notes'][nid],ev… 174 | … key=source_key(n,rows);symbol=keys.get((key,n['type']));match=classes.get((key,symbol));schema={};candidates=[];rs=[i for i,e i… | ^^^^^ 175 | … if match: 176 | … ei,c=match;schema=node_schema(c);sources.append(dict(sources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbo… | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:174:100 | 172 | … if n['type']in ['Note','MarkdownNote']: 173 | … comments.append(dict(node_id=nid,pointer=ptr+'/widgets_values/0',text=n['widgets_values'][0],meaning=prose['notes'][nid],ev… 174 | … key=source_key(n,rows);symbol=keys.get((key,n['type']));match=classes.get((key,symbol));schema={};candidates=[];rs=[i for i,e i… | ^ 175 | … if match: 176 | … ei,c=match;schema=node_schema(c);sources.append(dict(sources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbo… | E501 Line too long (172 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:174:101 | 172 | … 173 | …_values/0',text=n['widgets_values'][0],meaning=prose['notes'][nid],evidence=[]));continue 174 | …tch=classes.get((key,symbol));schema={};candidates=[];rs=[i for i,e in enumerate(rows)if e['id']==key] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 175 | … 176 | …ources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbol+';原端口/额外项/保存协议冲突单列')) | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:174:110 | 172 | … if n['type']in ['Note','MarkdownNote']: 173 | … comments.append(dict(node_id=nid,pointer=ptr+'/widgets_values/0',text=n['widgets_values'][0],meaning=prose['notes'][nid],ev… 174 | … key=source_key(n,rows);symbol=keys.get((key,n['type']));match=classes.get((key,symbol));schema={};candidates=[];rs=[i for i,e i… | ^ 175 | … if match: 176 | … ei,c=match;schema=node_schema(c);sources.append(dict(sources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbo… | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:174:124 | 172 | … if n['type']in ['Note','MarkdownNote']: 173 | … comments.append(dict(node_id=nid,pointer=ptr+'/widgets_values/0',text=n['widgets_values'][0],meaning=prose['notes'][nid],ev… 174 | … key=source_key(n,rows);symbol=keys.get((key,n['type']));match=classes.get((key,symbol));schema={};candidates=[];rs=[i for i,e i… | ^ 175 | … if match: 176 | … ei,c=match;schema=node_schema(c);sources.append(dict(sources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbo… | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:176:27 | 174 | … key=source_key(n,rows);symbol=keys.get((key,n['type']));match=classes.get((key,symbol));schema={};candidates=[];rs=[i for i,e i… 175 | … if match: 176 | … ei,c=match;schema=node_schema(c);sources.append(dict(sources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbo… | ^ 177 | … rs.append(len(sources)-1);candidates=[dict(source=ei,symbol=symbol,lines=[c.lineno,c.end_lineno])] 178 | … sid='subgraph-definition'if key=='boundary'else'unknown-no-version'if key=='unknown'else key if match else'unresolved-'+key | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:176:49 | 174 | … key=source_key(n,rows);symbol=keys.get((key,n['type']));match=classes.get((key,symbol));schema={};candidates=[];rs=[i for i,e i… 175 | … if match: 176 | … ei,c=match;schema=node_schema(c);sources.append(dict(sources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbo… | ^ 177 | … rs.append(len(sources)-1);candidates=[dict(source=ei,symbol=symbol,lines=[c.lineno,c.end_lineno])] 178 | … sid='subgraph-definition'if key=='boundary'else'unknown-no-version'if key=='unknown'else key if match else'unresolved-'+key | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:177:42 | 175 | … if match: 176 | … ei,c=match;schema=node_schema(c);sources.append(dict(sources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbo… 177 | … rs.append(len(sources)-1);candidates=[dict(source=ei,symbol=symbol,lines=[c.lineno,c.end_lineno])] | ^ 178 | … sid='subgraph-definition'if key=='boundary'else'unknown-no-version'if key=='unknown'else key if match else'unresolved-'+key 179 | … bindings.append(dict(node_id=nid,class_type=n['type'],source_id=sid,source_version=n.get('properties',{}).get('ver','未知:没… | E501 Line too long (135 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:178:101 | 176 | …rces.append(dict(sources[ei],lines=[c.lineno,c.end_lineno],claim=nid+'准确注册类'+symbol+';原端口/额外项/保存协议冲突单列')) 177 | …=[dict(source=ei,symbol=symbol,lines=[c.lineno,c.end_lineno])] 178 | …ry'else'unknown-no-version'if key=='unknown'else key if match else'unresolved-'+key | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 179 | …ype=n['type'],source_id=sid,source_version=n.get('properties',{}).get('ver','未知:没有准确版本'),declared_provider=n.get('propertie… 180 | …']};保留原边,不模拟有效分支/旁路/执行;零具名,不造双指针。" | E501 Line too long (396 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:179:101 | 177 | …eno,c.end_lineno])] 178 | …'else key if match else'unresolved-'+key 179 | …n.get('properties',{}).get('ver','未知:没有准确版本'),dec…不借近似类')) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 180 | … 名,不造双指针。" 181 | … | E501 Line too long (114 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:180:79 | 178 | … sid='subgraph-definition'if key=='boundary'else'unknown-no-version'if key=='unknown'else key if match else'unresolved-'+key 179 | … bindings.append(dict(node_id=nid,class_type=n['type'],source_id=sid,source_version=n.get('properties',{}).get('ver','未知:没… 180 | … effect=editorial[nid]+f" 原mode={n['mode']};保留原边,不模拟有效分支/旁路/执行;零具名,不造双指针。" | ^^^^^^^^^^^^^ 181 | … flow.append(effect) 182 | … w=n.get('widgets_values') | E501 Line too long (122 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:184:101 | 182 | … w=n.get('widgets_values') 183 | … if 'widgets_values'not in n or w in [None,[],{}]: 184 | … state='missing'if 'widgets_values'not in n else'null'if w is None else'empty_dict'if w=={}else'empty_list' | ^^^^^^^^^^^^^^^^^^^^^^ 185 | … empty.append(dict(node_id=nid,class_type=n['type'],pointer=ptr,scope=scope,state=state,named_state='missing',effect=effect)… 186 | … names=layouts(n);entries=list(w.items())if isinstance(w,dict)else list(zip(names,w,strict=True)) | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:185:141 | 183 | … 184 | …s None else'empty_dict'if w=={}else'empty_list' 185 | …ptr,scope=scope,state=state,named_state='missing',effect=effect));continue | ^ 186 | …se list(zip(names,w,strict=True)) 187 | … | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:186:29 | 184 | … state='missing'if 'widgets_values'not in n else'null'if w is None else'empty_dict'if w=={}else'empty_list' 185 | … empty.append(dict(node_id=nid,class_type=n['type'],pointer=ptr,scope=scope,state=state,named_state='missing',effect=effect)… 186 | … names=layouts(n);entries=list(w.items())if isinstance(w,dict)else list(zip(names,w,strict=True)) | ^ 187 | … for j,(name,value)in enumerate(entries): 188 | … inp=next((i for i,x in enumerate(n.get('inputs',[]))if x['name']==name),None);known=name in schema | E501 Line too long (108 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:186:101 | 184 | … state='missing'if 'widgets_values'not in n else'null'if w is None else'empty_dict'if w=={}else'empty_list' 185 | … empty.append(dict(node_id=nid,class_type=n['type'],pointer=ptr,scope=scope,state=state,named_state='missing',effect=effect)… 186 | … names=layouts(n);entries=list(w.items())if isinstance(w,dict)else list(zip(names,w,strict=True)) | ^^^^^^^^ 187 | … for j,(name,value)in enumerate(entries): 188 | … inp=next((i for i,x in enumerate(n.get('inputs',[]))if x['name']==name),None);known=name in schema | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:188:94 | 186 | names=layouts(n);entries=list(w.items())if isinstance(w,dict)else list(zip(names,w,strict=True)) 187 | for j,(name,value)in enumerate(entries): 188 | inp=next((i for i,x in enumerate(n.get('inputs',[]))if x['name']==name),None);known=name in schema | ^ 189 | link=n['inputs'][inp].get('link')if inp is not None else None;e=edges.get(link) 190 | boundary_link=bool(pre and isinstance(e,dict)and e['origin_id']==graph['inputNode']['id']) | E501 Line too long (114 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:188:101 | 186 | names=layouts(n);entries=list(w.items())if isinstance(w,dict)else list(zip(names,w,strict=True)) 187 | for j,(name,value)in enumerate(entries): 188 | inp=next((i for i,x in enumerate(n.get('inputs',[]))if x['name']==name),None);known=name in schema | ^^^^^^^^^^^^^^ 189 | link=n['inputs'][inp].get('link')if inp is not None else None;e=edges.get(link) 190 | boundary_link=bool(pre and isinstance(e,dict)and e['origin_id']==graph['inputNode']['id']) | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:189:78 | 187 | for j,(name,value)in enumerate(entries): 188 | inp=next((i for i,x in enumerate(n.get('inputs',[]))if x['name']==name),None);known=name in schema 189 | link=n['inputs'][inp].get('link')if inp is not None else None;e=edges.get(link) | ^ 190 | boundary_link=bool(pre and isinstance(e,dict)and e['origin_id']==graph['inputNode']['id']) 191 | aux=name=='control_after_generate'or(n['type']=='Seed (rgthree)'and j>0) | E501 Line too long (106 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:190:101 | 188 | … inp=next((i for i,x in enumerate(n.get('inputs',[]))if x['name']==name),None);known=name in schema 189 | … link=n['inputs'][inp].get('link')if inp is not None else None;e=edges.get(link) 190 | … boundary_link=bool(pre and isinstance(e,dict)and e['origin_id']==graph['inputNode']['id']) | ^^^^^^ 191 | … aux=name=='control_after_generate'or(n['type']=='Seed (rgthree)'and j>0) 192 | … default,limits=schema.get(name,('未知:准确类/字段未匹配或额外保存;不借后版/相似类','未知:不按位置/原口名认证后端支持、默认… | E501 Line too long (191 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:193:101 | 191 | …and j>0) 192 | … ;不借后版/相似类','未知:不按位置/原口名认证后端支持、默认或恢复')) 193 | …d_override'if known and link is not None else'frontend_only'if aux else'schema_input'if known else'extra_saved' | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194 | …cope=scope,class_type=n['type'],field=name,label=prose['labels'].get(name,name+'原保存(后端支持与缓存分列)'),pointer=ptr+'/widgets… 195 | …n graph['links']] | E501 Line too long (961 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:194:101 | 192 | … 类','未知:不按位置/原口名认证后端支持、默认或恢复')) 193 | …nown and link is not None else'frontend_only'if aux else'schema_input'if known else'extra_saved' 194 | …s_type=n['type'],field=name,label=prose['labels'].get(name,name+'原保存(后端支持与缓存分列)'),pointer=ptr+'/widgets_values/'+(name if isinstance(w,dict)else str(j)),value=value,json_type=type(value).__name__,named_state='missing',input_pointer=f'{ptr}/inputs/{inp}'if known and inp is not None else'未知:无准确后端映射;原widget/口名仅保存线索',input_name=name if known and inp is not None else None,type=limits,role=role,schema_default=default,limits=limits,unit=prose['units'].get(nid+'.'+name,'准确schema类型与原JSON类型分列;无明确物理单位则未知'),effect=effect+(' 此项不在准确已匹配schema,不能认证生效/恢复。'if not known else' 原widget/保存值与准确同名schema分列;前端版本未声明,不认证控件顺序/完整恢复。'),evidence=rs,execution_note='仅静态保存与源码;未构造prompt/执行插件模型GPU/SAM/音频/播放/随机/循环/采样/视频/媒体/别名/组控/清理或I/O,资格不变。')) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195 | …]] 196 | … | E501 Line too long (295 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:198:101 | 196 | … 197 | … 198 | …,host=host,**{k:graph[k]for k in ['inputNode','outputNode','inputs','outputs','widgets','state','extra']},proxy_state='missing'if'proxyWidgets'not in host['properties']else'present',proxy_mappings=[]) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199 | …s(boundary,ensure_ascii=False)) 200 | … | E702 Multiple statements on one line (semicolon) --> docs/hel-892/wanplus-document-evidence/build_definition.py:199:40 | 197 | host=next(n for n in g['nodes']if str(n['id'])+':'==pre) 198 | boundary=dict(host_node_id=str(host['id']),definition_id=graph['id'],pointer=prefix,host=host,**{k:graph[k]for k in ['inp… 199 | boundaries.append(boundary);flow.append('宿主'+str(host['id'])+' 原边界 '+json.dumps(boundary,ensure_ascii=False)) | ^ 200 | flow+=['根附加属性 '+json.dumps(g['extra'],ensure_ascii=False)]+prose['steps'] 201 | assert len(fields)==339 and len(comments)==6 and len(boundaries)==1 | E501 Line too long (126 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:199:96 | 197 | host=next(n for n in g['nodes']if str(n['id'])+':'==pre) 198 | boundary=dict(host_node_id=str(host['id']),definition_id=graph['id'],pointer=prefix,host=host,**{k:graph[k]for k in ['inp… 199 | boundaries.append(boundary);flow.append('宿主'+str(host['id'])+' 原边界 '+json.dumps(boundary,ensure_ascii=False)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 200 | flow+=['根附加属性 '+json.dumps(g['extra'],ensure_ascii=False)]+prose['steps'] 201 | assert len(fields)==339 and len(comments)==6 and len(boundaries)==1 | E501 Line too long (961 > 100) --> docs/hel-892/wanplus-document-evidence/build_definition.py:202:101 | 200 | … 201 | … 202 | …6=hashlib.sha256(raw).hexdigest(),canonical_sha25…es,steps=[prose['overview']]+prose['steps']) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Found 66 errors.