Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetmeleq committed Oct 4, 2023
1 parent a384df1 commit 3ec0ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unstructured/ingest/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def version(self) -> t.Optional[str]:
return self.source_metadata.version # type: ignore

@property
def permissions_data(self) -> t.Optional[str]:
def permissions_data(self) -> t.Optional[t.List[t.Dict[str, t.Any]]]:
"""Role based access control data, aka permissions or sharing, from the source system."""
if self.source_metadata is None:
self.update_source_metadata()
Expand Down Expand Up @@ -241,7 +241,7 @@ def update_permissions_data(self):
"""Sets the _permissions_data property for the doc.
This property is later used to fill the corresponding SourceMetadata.permissions_data field,
and after that carries on to the permissions_data property."""
self._permissions_data: t.List[t.Dict] = [{}]
self._permissions_data: t.Optional[t.List[t.Dict]] = None

# NOTE(crag): Future BaseIngestDoc classes could define get_file_object() methods
# in addition to or instead of get_file()
Expand Down

0 comments on commit 3ec0ca8

Please sign in to comment.