-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Description
Bug Report: Typo in Method Name set_shema Should be set_schema
Description
There is a typo in the Request class where the method is named set_shema instead of the correct spelling set_schema. This affects the public API of the library.
Location: volcengine/base/Request.py:23
Current Behavior
def set_shema(self, schema):
self.schema = schemaThe method is currently called set_shema (missing 'c'), but it sets the schema attribute which is correctly spelled.
Expected Behavior
The method should be named set_schema to match:
- The attribute name (
self.schema) - Standard English spelling
- Naming conventions in the rest of the codebase
Impact
The misspelled method is currently used in:
Suggested Fix with Backward Compatibility
To maintain backward compatibility for existing users, we should:
- Add a new correctly-spelled method
set_schema - Keep the old
set_shemamethod as a deprecated alias - Add a deprecation warning to
set_shema
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels