Skip to content

Commit 2c047a4

Browse files
committed
2.5.4 release
1 parent dd08028 commit 2c047a4

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

office365/onedrive/versions/drive_item.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional
1+
from typing import AnyStr, Optional
22

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

1818
@property
1919
def content(self):
20-
"""
21-
The content stream for this version of the item.
22-
:rtype: str or bytes
23-
"""
20+
# type: () -> Optional[AnyStr]
21+
"""The content stream for this version of the item."""
2422
return self.properties.get("content", None)
2523

2624
@property
2725
def size(self):
2826
# type: () -> Optional[int]
29-
"""
30-
Indicates the size of the content stream for this version of the item.
31-
"""
27+
"""Indicates the size of the content stream for this version of the item."""
3228
return self.properties.get("size", None)

office365/onedrive/workbooks/tables/table.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
class WorkbookTable(Entity):
1717
"""Represents an Excel table."""
1818

19+
def __repr__(self):
20+
return self.name or self.id or self.entity_type_name
21+
1922
def data_body_range(self):
2023
"""Gets the range object associated with the data body of the table."""
2124
return_type = WorkbookRange(
@@ -62,9 +65,7 @@ def name(self):
6265
@property
6366
def columns(self):
6467
# type: () -> WorkbookTableColumnCollection
65-
"""
66-
Represents a collection of all the columns in the table.
67-
"""
68+
"""Represents a collection of all the columns in the table."""
6869
return self.properties.get(
6970
"columns",
7071
WorkbookTableColumnCollection(

office365/onedrive/workbooks/workbook.py

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def application(self):
8989

9090
@property
9191
def comments(self):
92+
# type: () -> EntityCollection[WorkbookComment]
9293
""""""
9394
return self.properties.get(
9495
"comments",

0 commit comments

Comments
 (0)