From 6bf4c31329fe0493c488bc2f3699933f99600e1f Mon Sep 17 00:00:00 2001 From: RACZ Andras Date: Wed, 11 Sep 2024 14:56:46 +0200 Subject: [PATCH] fix type hint type checker complained --- office365/runtime/client_object_collection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/office365/runtime/client_object_collection.py b/office365/runtime/client_object_collection.py index 4b4cfa91..4b8079f4 100644 --- a/office365/runtime/client_object_collection.py +++ b/office365/runtime/client_object_collection.py @@ -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): @@ -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):