File tree 3 files changed +9
-11
lines changed
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 1
- from typing import Optional
1
+ from typing import AnyStr , Optional
2
2
3
3
from office365 .onedrive .versions .base_item import BaseItemVersion
4
4
from office365 .runtime .queries .service_operation import ServiceOperationQuery
@@ -17,16 +17,12 @@ def restore_version(self):
17
17
18
18
@property
19
19
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."""
24
22
return self .properties .get ("content" , None )
25
23
26
24
@property
27
25
def size (self ):
28
26
# 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."""
32
28
return self .properties .get ("size" , None )
Original file line number Diff line number Diff line change 16
16
class WorkbookTable (Entity ):
17
17
"""Represents an Excel table."""
18
18
19
+ def __repr__ (self ):
20
+ return self .name or self .id or self .entity_type_name
21
+
19
22
def data_body_range (self ):
20
23
"""Gets the range object associated with the data body of the table."""
21
24
return_type = WorkbookRange (
@@ -62,9 +65,7 @@ def name(self):
62
65
@property
63
66
def columns (self ):
64
67
# 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."""
68
69
return self .properties .get (
69
70
"columns" ,
70
71
WorkbookTableColumnCollection (
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ def application(self):
89
89
90
90
@property
91
91
def comments (self ):
92
+ # type: () -> EntityCollection[WorkbookComment]
92
93
""""""
93
94
return self .properties .get (
94
95
"comments" ,
You can’t perform that action at this time.
0 commit comments