Skip to content

Commit

Permalink
resolve missed typing issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Oct 14, 2024
1 parent 0461225 commit 6da0197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/abstractions/kiota_abstractions/multipart_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def add_or_replace_part(self, part_name: str, content_type: str, part_value: T)
value: Tuple[str, Any] = (content_type, part_value)
self.parts[self._normalize_part_name(part_name)] = value

def get_part_value(self, part_name: str) -> T:
def get_part_value(self, part_name: str) -> Optional[T]:
"""Gets the value of a part from the multipart body."""
if not part_name:
raise ValueError("Part name cannot be null")
Expand Down

0 comments on commit 6da0197

Please sign in to comment.