mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-05-20 09:02:38 +00:00
Refactors `get_block_attr` to remove the use of `hasattr()`, replacing it with `isinstance(dict)` check first and using `getattr(block, attr, default)` to avoid double-evaluation overhead and prevent edge cases where dictionaries might return built-in methods instead of intended keys. Co-authored-by: shreyashjagtap157 <38904253+shreyashjagtap157@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| anthropic | ||
| __init__.py | ||
| rate_limit.py | ||
| trace.py | ||