Skip to content

Commit

Permalink
Merge pull request #796 from microsoftgraph/shem/fix_parsable_factory…
Browse files Browse the repository at this point in the history
…_type_hint_error

remove generic from parsable factory type hint error
  • Loading branch information
shemogumbe authored Jan 9, 2025
2 parents d601260 + 9a6caeb commit f401001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/msgraph_core/tasks/large_file_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(
upload_session: Parsable,
request_adapter: RequestAdapter,
stream: BytesIO,
parsable_factory: Optional[ParsableFactory[T]] = None,
parsable_factory: Optional[ParsableFactory] = None,
max_chunk_size: int = 5 * 1024 * 1024
):
self._upload_session = upload_session
Expand Down Expand Up @@ -188,7 +188,7 @@ async def last_chunk(
file: BytesIO,
range_start: int = 0,
range_end: int = 0,
parsable_factory: Optional[ParsableFactory[T]] = None
parsable_factory: Optional[ParsableFactory] = None
) -> Optional[Union[T, bytes]]:
upload_url = self.get_validated_upload_url(self.upload_session)
if not upload_url:
Expand Down

0 comments on commit f401001

Please sign in to comment.