Skip to content

Python: all: Use __future__ annotations #3578

@eavanvalkenburg

Description

@eavanvalkenburg

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

Metadata

Metadata

Labels

pythonv1.0Features being tracked for the version 1.0 GA

Type

No fields configured for Task.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions