Skip to content

fix: add proper type annotation for threshold parameter in duplicate_service.py #715

@tmdeveloper007

Description

@tmdeveloper007

Issue Description

The check_duplicate method signature is:
def check_duplicate(self, text: str, threshold: float = None) -> dict:
But None is not a valid float. Should be float | None.

Expected Fix

Change the type annotation to: float | None

Files to Modify

  • backend/services/duplicate_service.py (line 196)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions