Skip to content

Replace self with cls in classmethods for consistency#211

Merged
hallacy merged 1 commit intoopenai:mainfrom
thangdangminh:change-self-to-cls
Feb 6, 2023
Merged

Replace self with cls in classmethods for consistency#211
hallacy merged 1 commit intoopenai:mainfrom
thangdangminh:change-self-to-cls

Conversation

@thangdangminh
Copy link
Copy Markdown
Contributor

This PR updates the code to use "cls" as the first argument for class methods for improved readability and consistency with community conventions.

@hallacy
Copy link
Copy Markdown
Collaborator

hallacy commented Feb 6, 2023

Nice find!

@hallacy hallacy merged commit 33fd626 into openai:main Feb 6, 2023
davedittrich pushed a commit to davedittrich/openai-python that referenced this pull request Nov 14, 2023
cgayapr pushed a commit to cgayapr/openai-python that referenced this pull request Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants