Skip to content

Commit 60c3120

Browse files
codebydivineclaude
andcommitted
Remove backward compatibility constraints and update development philosophy
- Add "No Backward Compatibility Constraints" section to CLAUDE.md - Clarify that code quality and clean architecture take priority over compatibility - Remove backward compatibility references from models.py docstring - Establish principle of breaking freely for better design This enables bold refactoring and rapid API evolution without legacy constraints. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent de109e7 commit 60c3120

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

CLAUDE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,16 @@ uv run python3 -m module # Run module
255255
- **Linter**: ruff (not flake8/black)
256256
- **Type Checker**: mypy with strict mode
257257

258+
## 🚀 Development Philosophy
259+
260+
### **No Backward Compatibility Constraints**
261+
- **Break freely**: When improving APIs, types, or interfaces, prioritize clean design over backward compatibility
262+
- **Refactor boldly**: Don't hesitate to restructure code for better maintainability, performance, or clarity
263+
- **Evolve rapidly**: Focus on the best possible API design without being constrained by legacy usage patterns
264+
- **Version bumps**: Use semantic versioning to communicate breaking changes to users
265+
266+
This project prioritizes **code quality, type safety, and clean architecture** over maintaining compatibility with previous versions. Users should expect and plan for breaking changes between versions as the codebase evolves.
267+
258268
## 📚 Additional Resources
259269

260270
- [uv documentation](https://docs.astral.sh/uv/)

src/thegraph_token_api/models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
Data classes for structured API responses.
33
44
This module provides clean, attribute-accessible data classes that replace
5-
raw dictionary access with proper structured types. All classes support
6-
both attribute access (obj.symbol) and dictionary access (obj['symbol'])
7-
for backward compatibility.
5+
raw dictionary access with proper structured types. All classes use modern
6+
dataclass attribute access (obj.symbol) for clean, type-safe interfaces.
87
"""
98

109
import inspect

0 commit comments

Comments
 (0)