Skip to content

Python: all: Use __future__ annotations #3578

Closed

Description

Consider adding from __future__ import annotations to prevent string-based type hints throughout the file.

File: python/packages/core/agent_framework/_tools.py

\\python
from future import annotations # <- we can use this to prevent all the string based type hints
\\

Action: Add future annotations import to simplify type hints across the file.

This can be done across the board

Parent issue: #3575

Activity

  1. changed the title [-][Python] Use __future__ annotations in _tools.py[/-] [+]Python: [Python] Use __future__ annotations in _tools.py[/+] on Feb 2, 2026
  2. changed the title [-]Python: [Python] Use __future__ annotations in _tools.py[/-] [+]Python: [Python] Use __future__ annotations[/+] on Feb 2, 2026
  3. changed the title [-]Python: [Python] Use __future__ annotations[/-] [+]Python: Use __future__ annotations[/+] on Feb 2, 2026
  4. changed the title [-]Python: Use __future__ annotations[/-] [+]Python: all: Use __future__ annotations[/+] on Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

pythonUsage: [Issues, PRs], Target: Python

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions