MCPcopy Create free account
hub / github.com/THUDM/AutoWebGLM / attr_check

Method attr_check

webarena/browser_env/html_tools/html_parser.py:24–32  ·  view source on GitHub ↗
(attr, type_model='str')

Source from the content-addressed store, hash-verified

22
23 def parse_args(self, args: dict[str]={}) -> None:
24 def attr_check(attr, type_model='str'):
25 if attr is None:
26 return False
27 attr_type = type(attr)
28 if attr_type != type(type_model):
29 return False
30 if attr_type == type('str') and len(attr) == 0:
31 return False
32 return True
33
34 args = {} if args is None else args
35

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected