Skip to content

Use Optional[dict] instead of dict for files parameter in transcribe.py #1258

@araman0

Description

@araman0

In transcribe.py, the files parameter is currently defined as:

files: dict = None,

Since None is a valid default value, it would be more appropriate to use Optional[dict] to explicitly indicate that files can be None:

files: Optional[dict] = None,

This improves type clarity and aligns with Python's type hinting conventions.

Would you consider updating this for better type consistency?
I'm happy to submit a PR if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions