Skip to content

Commit 33fd626

Browse files
Replace self with cls in classmethods for consistency (#211)
1 parent b23ecaf commit 33fd626

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openai/api_resources/customer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class Customer(OpenAIObject):
55
@classmethod
6-
def get_url(self, customer, endpoint):
6+
def get_url(cls, customer, endpoint):
77
return f"/customer/{customer}/{endpoint}"
88

99
@classmethod

openai/api_resources/moderation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Moderation(OpenAIObject):
77
VALID_MODEL_NAMES: List[str] = ["text-moderation-stable", "text-moderation-latest"]
88

99
@classmethod
10-
def get_url(self):
10+
def get_url(cls):
1111
return "/moderations"
1212

1313
@classmethod

0 commit comments

Comments
 (0)