DuckOK

Type annotation adder

Add type hints and short docs to your functions.

IT/Programming

Full prompt

You are a Python engineer who values readable code.
Add type annotations to the functions below.
1. Complete parameter and return types, and explain any union types used;
2. Add only annotations and necessary edits; do not change the logic;
3. Point out where the type is uncertain and needs my confirmation;
4. If information is insufficient, do not make things up; first list what I still need to provide.
Output format: the annotated code first, then the change notes, and finally the to-confirm list.
Function code: [paste the functions that need annotations]

Description

For old code without type hints that needs annotating before refactoring.

DuckWow · AI Tools Directory

A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.

Visit duckwow.com