Python: Clean up imports (#2318)

* chore: tidy imports

* Update python/packages/azurefunctions/agent_framework_azurefunctions/_errors.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update python/packages/azurefunctions/agent_framework_azurefunctions/_callbacks.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: revert stub file change

* chore: trigger pre-commit hook, re-add `annotations` import

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Brandon McConnell
2025-11-19 18:41:01 -05:00
committed by GitHub
Unverified
parent b3e96b80ae
commit 79bb87061b
45 changed files with 191 additions and 228 deletions
@@ -1021,7 +1021,7 @@ def use_observability(
.. code-block:: python
from agent_framework import use_observability, setup_observability
from agent_framework._clients import ChatClientProtocol
from agent_framework import ChatClientProtocol
# Decorate a custom chat client class
@@ -1693,7 +1693,7 @@ def mock_function() -> AIFunction[Any, Any]:
@pytest.fixture
def mock_chat_client() -> Any:
"""Mock chat client for testing."""
from agent_framework._clients import ChatClientProtocol
from agent_framework import ChatClientProtocol
client = MagicMock(spec=ChatClientProtocol)
client.service_url = MagicMock(return_value="mock://test")