Skip to content

Commit 4970dd2

Browse files
committed
Fix C0115: Missing class docstring (missing-class-docstring)
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
1 parent beff789 commit 4970dd2

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

replicate/deployment.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ def predictions(self) -> "DeploymentPredictionCollection":
3535

3636

3737
class DeploymentCollection(Collection):
38+
"""
39+
Namespace for operations related to deployments.
40+
"""
41+
3842
model = Deployment
3943

4044
def list(self) -> List[Deployment]:

replicate/model.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ def versions(self) -> VersionCollection:
107107

108108

109109
class ModelCollection(Collection):
110+
"""
111+
Namespace for operations related to models.
112+
"""
113+
110114
model = Model
111115

112116
def list(self) -> List[Model]:

replicate/prediction.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ def cancel(self) -> None:
133133

134134

135135
class PredictionCollection(Collection):
136+
"""
137+
Namespace for operations related to predictions.
138+
"""
139+
136140
model = Prediction
137141

138142
def list(self) -> List[Prediction]:

replicate/training.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def cancel(self) -> None:
6262

6363

6464
class TrainingCollection(Collection):
65+
"""
66+
Namespace for operations related to trainings.
67+
"""
68+
6569
model = Training
6670

6771
def list(self) -> List[Training]:

replicate/version.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ def get_transformed_schema(self) -> dict:
7070

7171

7272
class VersionCollection(Collection):
73+
"""
74+
Namespace for operations related to model versions.
75+
"""
76+
7377
model = Version
7478

7579
def __init__(self, client: "Client", model: "Model") -> None:

0 commit comments

Comments
 (0)