Skip to content

Commit

Permalink
2.5.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrem committed Dec 24, 2023
1 parent dd08028 commit 2c047a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
12 changes: 4 additions & 8 deletions office365/onedrive/versions/drive_item.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional
from typing import AnyStr, Optional

from office365.onedrive.versions.base_item import BaseItemVersion
from office365.runtime.queries.service_operation import ServiceOperationQuery
Expand All @@ -17,16 +17,12 @@ def restore_version(self):

@property
def content(self):
"""
The content stream for this version of the item.
:rtype: str or bytes
"""
# type: () -> Optional[AnyStr]
"""The content stream for this version of the item."""
return self.properties.get("content", None)

@property
def size(self):
# type: () -> Optional[int]
"""
Indicates the size of the content stream for this version of the item.
"""
"""Indicates the size of the content stream for this version of the item."""
return self.properties.get("size", None)
7 changes: 4 additions & 3 deletions office365/onedrive/workbooks/tables/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
class WorkbookTable(Entity):
"""Represents an Excel table."""

def __repr__(self):
return self.name or self.id or self.entity_type_name

def data_body_range(self):
"""Gets the range object associated with the data body of the table."""
return_type = WorkbookRange(
Expand Down Expand Up @@ -62,9 +65,7 @@ def name(self):
@property
def columns(self):
# type: () -> WorkbookTableColumnCollection
"""
Represents a collection of all the columns in the table.
"""
"""Represents a collection of all the columns in the table."""
return self.properties.get(
"columns",
WorkbookTableColumnCollection(
Expand Down
1 change: 1 addition & 0 deletions office365/onedrive/workbooks/workbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def application(self):

@property
def comments(self):
# type: () -> EntityCollection[WorkbookComment]
""""""
return self.properties.get(
"comments",
Expand Down

0 comments on commit 2c047a4

Please sign in to comment.