Skip to content

Commit 9309b92

Browse files
authored
Merge pull request #892 from torzsmokus/torzsmokus-patch-1
fix type hint
2 parents 4ec81b6 + 6bf4c31 commit 9309b92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

office365/runtime/client_object_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def top(self, value):
138138
return self
139139

140140
def paged(self, page_size=None, page_loaded=None):
141-
# type: (int, Callable[[Self], None]) -> Self
141+
# type: (int, Callable[[Self], None] | None) -> Self
142142
"""Retrieves via server-driven paging mode"""
143143
self._paged_mode = True
144144
if callable(page_loaded):
@@ -158,7 +158,7 @@ def _loaded(col):
158158
return self
159159

160160
def get_all(self, page_size=None, page_loaded=None):
161-
# type: (int, Callable[[Self], None]) -> Self
161+
# type: (int, Callable[[Self], None] | None) -> Self
162162
"""Gets all the items in a collection, regardless of the size."""
163163

164164
def _page_loaded(col):

0 commit comments

Comments
 (0)