mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
fix: Convert camelCase to snake_case for Python naming conventions (#146)
- Renamed PermissionRuleValue fields: toolName → tool_name, ruleContent → rule_content - Renamed PermissionResultAllow fields: updatedInput → updated_input, updatedPermissions → updated_permissions - Removed unused PermissionResult import from query.py - Fixed trailing whitespace issues in types.py - Updated all usages in examples and tests to use snake_case These changes ensure compliance with Python's PEP 8 naming conventions and fix linting errors. 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
68f0d7aa7d
commit
681f46c873
7 changed files with 133 additions and 130 deletions
|
|
@ -61,7 +61,7 @@ async def my_permission_callback(
|
|||
modified_input = input_data.copy()
|
||||
modified_input["file_path"] = safe_path
|
||||
return PermissionResultAllow(
|
||||
updatedInput=modified_input
|
||||
updated_input=modified_input
|
||||
)
|
||||
|
||||
# Check dangerous bash commands
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue