Skip to content

Commit dba5766

Browse files
author
Nico Thomaier
committed
chore(lint): import ClientResult to satisfy ruff F821 in ClientQuery
Ruff flagged F821 (undefined name) for "ClientResult" used in the TypeVar bound in office365/runtime/queries/client_query.py. While the forward reference works at runtime, static analysis requires the symbol to be imported. - Add explicit import: `from office365.runtime.client_result import ClientResult` - No runtime behavior change - Improves type checking/IDE hints and lets pre-commit (ruff) pass
1 parent 2d9053f commit dba5766

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

office365/runtime/queries/client_query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from typing import TYPE_CHECKING, AnyStr, Dict, Generic, Optional, TypeVar, Union
22

3+
from office365.runtime.client_result import ClientResult
4+
35
if TYPE_CHECKING:
46
from office365.runtime.client_object import ClientObject
57
from office365.runtime.client_runtime_context import ClientRuntimeContext

0 commit comments

Comments
 (0)