Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DVampire/FinAgent
/ get_attr
Function
get_attr
finagent/utils/utils.py:1–5 ·
view source on GitHub ↗
(attr, key, default=None)
Source
from the content-addressed store, hash-verified
1
def
get_attr(attr, key, default=None):
2
if
isinstance(attr, dict):
3
return
attr.get(key, default)
4
else
:
5
return
getattr(attr, key, default)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected