Skip to content

Commit

Permalink
drop optional from object_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Berenbaum committed Jul 15, 2024
1 parent d236203 commit a2a37c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/datachain/lib/dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def from_json(
spec: Optional[FeatureType] = None,
schema_from: Optional[str] = "auto",
jmespath: Optional[str] = None,
object_name: Optional[str] = None,
object_name: str = "",
model_name: Optional[str] = None,
show_schema: Optional[bool] = False,
meta_type: Optional[str] = "json",
Expand Down Expand Up @@ -659,7 +659,7 @@ def from_features(
ds_name: str = "",
session: Optional[Session] = None,
output: Union[None, FeatureType, Sequence[str], dict[str, FeatureType]] = None,
object_name: Optional[str] = None,
object_name: str = "",
**fr_map,
) -> "DataChain":
"""Generate chain from list of features."""
Expand All @@ -679,7 +679,7 @@ def from_pandas( # type: ignore[override]
df: "pd.DataFrame",
name: str = "",
session: Optional[Session] = None,
object_name: Optional[str] = None,
object_name: str = "",
) -> "DataChain":
"""Generate chain from pandas data-frame."""
fr_map = {col.lower(): df[col].tolist() for col in df.columns}
Expand All @@ -702,7 +702,7 @@ def from_pandas( # type: ignore[override]
def parse_tabular(
self,
output: Union[None, FeatureType, dict[str, FeatureType]] = None,
object_name: Optional[str] = None,
object_name: str = "",
**kwargs,
) -> "DataChain":
"""Generate chain from list of tabular files.
Expand Down Expand Up @@ -750,7 +750,7 @@ def from_csv(
header: bool = True,
column_names: Optional[list[str]] = None,
output: Optional[dict[str, FeatureType]] = None,
object_name: Optional[str] = None,
object_name: str = "",
**kwargs,
) -> "DataChain":
"""Generate chain from csv files.
Expand Down Expand Up @@ -800,7 +800,7 @@ def from_parquet(
path,
partitioning: Any = "hive",
output: Optional[dict[str, FeatureType]] = None,
object_name: Optional[str] = None,
object_name: str = "",
**kwargs,
) -> "DataChain":
"""Generate chain from parquet files.
Expand Down

0 comments on commit a2a37c7

Please sign in to comment.