Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
madhur-tandon committed Oct 27, 2022
1 parent 9234258 commit 7533408
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mlem/contrib/lightgbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ class LightGBMDataType(
type: ClassVar[str] = "lightgbm"
valid_types: ClassVar = (lgb.Dataset,)
inner: DataType
"""DataType of Inner"""
labels: Optional[DataType]
"""DataType of Labels"""

def serialize(self, instance: Any) -> dict:
self.check_type(instance, lgb.Dataset, SerializationError)
Expand Down Expand Up @@ -165,7 +167,9 @@ class LightGBMDataReader(DataReader):
type: ClassVar[str] = "lightgbm"
data_type: LightGBMDataType
inner: DataReader
"""DataReader of Inner"""
labels: Optional[DataReader]
"""DataReader of Labels"""

def read(self, artifacts: Artifacts) -> DataType:
if self.labels is not None:
Expand Down

0 comments on commit 7533408

Please sign in to comment.