Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file cannot be modified

Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

# The authoring distribution shares the `azure.ai.language.questionanswering` namespace
# with the runtime distribution. When both are installed, users expect runtime symbols
# (like `QuestionAnsweringClient`) to remain importable from this package.
try:
from ._client import QuestionAnsweringClient # type: ignore
from ._version import VERSION # type: ignore

__version__ = VERSION
__all__ = ["QuestionAnsweringClient"]
except ImportError:
__all__ = []
Comment on lines +6 to +13
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The runtime package's init.py includes additional initialization logic (importing from _patch and calling patch_sdk()) that won't execute if the authoring package's init.py is loaded first. While patch_sdk() is currently empty, consider calling it here for consistency and future-proofing: add from ._patch import patch_sdk and patch_sdk() in the try block after line 8. This ensures the runtime package initializes correctly regardless of import order.

Copilot uses AI. Check for mistakes.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ exclude = [
"azure",
"azure.ai",
"azure.ai.language",
"azure.ai.language.questionanswering",
]

[tool.setuptools.package-data]
Expand Down
Loading