Skip to content

Type hint cleanup in transcribe_utils#15844

Open
TeamInfinixdevcom wants to merge 2 commits into
NVIDIA-NeMo:mainfrom
TeamInfinixdevcom:main
Open

Type hint cleanup in transcribe_utils#15844
TeamInfinixdevcom wants to merge 2 commits into
NVIDIA-NeMo:mainfrom
TeamInfinixdevcom:main

Conversation

@TeamInfinixdevcom

Copy link
Copy Markdown

Changes: added the missing type annotations in nemo/collections/asr/parts/utils/transcribe_utils.py without changing behavior. The fix is already validated, committed, and pushed.

Copilot AI review requested due to automatic review settings June 28, 2026 21:32
@copy-pr-bot

copy-pr-bot Bot commented Jun 28, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to add missing type annotations in nemo/collections/asr/parts/utils/transcribe_utils.py without changing runtime behavior, improving readability and (where used) static analysis of ASR transcription utilities.

Changes:

  • Added Optional[...] annotations for several optional parameters (e.g., manifest, output_manifest_path, filepaths).
  • Added/adjusted return types for a few helpers (e.g., restore_transcription_order, normalize_timestamp_output) and annotated __init__ to return None.
  • Updated typing imports to include Dict.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread nemo/collections/asr/parts/utils/transcribe_utils.py Outdated
Comment on lines +222 to +223
manifest: Optional[str] = None,
filepaths: Optional[List[list]] = None,


def normalize_timestamp_output(timestamps: dict):
def normalize_timestamp_output(timestamps: Dict) -> Dict:
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Team Infinix Dev <teaminfinixdev@gmail.com>
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ASR community-request waiting-on-maintainers Waiting on maintainers to respond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants