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

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions