Skip to content

Commit

Permalink
fix type hint
Browse files Browse the repository at this point in the history
type checker complained
  • Loading branch information
torzsmokus authored Sep 11, 2024
1 parent 4ec81b6 commit 6bf4c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions office365/runtime/client_object_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def top(self, value):
return self

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

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

def _page_loaded(col):
Expand Down

0 comments on commit 6bf4c31

Please sign in to comment.