Skip to content

Commit

Permalink
refactor(xmllib): remove "title" parameter from (Video|Audio)SegmentR…
Browse files Browse the repository at this point in the history
…esource.create_new() (#1258)
  • Loading branch information
jnussbaum authored Nov 6, 2024
1 parent e7871fc commit 99478f1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/dsp_tools/xmllib/models/dsp_base_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@ def create_new(
segment_of: str,
segment_start: float,
segment_end: float,
title: str | None = None,
permissions: Permissions = Permissions.PROJECT_SPECIFIC_PERMISSIONS,
) -> VideoSegmentResource:
"""
Expand All @@ -520,7 +519,6 @@ def create_new(
segment_of: ID of the video resource that this segment refers to (cardinality 1)
segment_start: start of the segment in seconds (cardinality 1)
segment_end: end of the segment in seconds (cardinality 1)
title: title of this segment (cardinality 0-1)
permissions: permissions of this resource
Returns:
Expand All @@ -531,7 +529,6 @@ def create_new(
label=label,
segment_of=segment_of,
segment_bounds=SegmentBounds(segment_start, segment_end, res_id),
title=title,
permissions=permissions,
)

Expand Down Expand Up @@ -802,7 +799,6 @@ def create_new(
segment_of: str,
segment_start: float,
segment_end: float,
title: str | None = None,
permissions: Permissions = Permissions.PROJECT_SPECIFIC_PERMISSIONS,
) -> AudioSegmentResource:
"""
Expand All @@ -819,7 +815,6 @@ def create_new(
segment_of: ID of the audio resource that this segment refers to (cardinality 1)
segment_start: start of the segment in seconds (cardinality 1)
segment_end: end of the segment in seconds (cardinality 1)
title: title of this segment (cardinality 0-1)
permissions: permissions of this resource
Returns:
Expand All @@ -830,7 +825,6 @@ def create_new(
label=label,
segment_of=segment_of,
segment_bounds=SegmentBounds(segment_start, segment_end, res_id),
title=title,
permissions=permissions,
)

Expand Down

0 comments on commit 99478f1

Please sign in to comment.