Skip to content

Commit

Permalink
chore: typecheck and documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
geekodour committed Nov 8, 2023
1 parent d36ba72 commit e7245bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/wscribe/backends/fasterwhisper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import math
import os
from dataclasses import dataclass
from typing import Any, Mapping, MutableMapping
from typing import Any, Mapping, MutableMapping, Optional

import numpy as np
import structlog
Expand Down Expand Up @@ -37,7 +37,7 @@ def load(self) -> None:
)

def transcribe(
self, input: np.ndarray, language: str = None, silent: bool = False
self, input: np.ndarray, language: Optional[str] = None, silent: bool = False
) -> list[TranscribedData]:
"""
Return word level transcription data.
Expand Down
2 changes: 1 addition & 1 deletion src/wscribe/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def cli():
@click.option(
"-g", "--gpu", help="enable gpu, disabled by default", default=False, is_flag=True
)
@click.option("-l", "--language", help="choose language (skips autodetection)")
@click.option("-l", "--language", help="language code eg. en/fr (skips autodetection)")
@click.option("-d", "--debug", help="show debug logs", default=False, is_flag=True)
@click.option("-s", "--stats", help="print stats", default=False, is_flag=True)
@click.option("-q", "--quiet", help="no progress bar", default=False, is_flag=True)
Expand Down

0 comments on commit e7245bb

Please sign in to comment.