Skip to content

Replace self with cls in classmethods for consistency #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

thangdangminh
Copy link
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
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