Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thequilo committed Dec 7, 2023
1 parent 65fa3cd commit b5dcbf8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion meeteval/io/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

if typing.TYPE_CHECKING:
from typing import Self
from meeteval.io.seglst import SegLstSegment
from meeteval.io.seglst import SegLstSegment, SegLST
from meeteval.io.uem import UEM, UEMLine
from meeteval.io.stm import STM, STMLine
from meeteval.io.ctm import CTM, CTMLine
Expand Down
3 changes: 3 additions & 0 deletions meeteval/io/seglst.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import dataclasses
import functools
import typing
from typing import List, TypedDict, Callable

try:
Expand All @@ -11,6 +12,8 @@

from meeteval.io.base import BaseABC
from meeteval.io.py import NestedStructure
if typing.TYPE_CHECKING:
from meeteval.wer.wer.error_rate import ErrorRate


class SegLstSegment(TypedDict, total=False):
Expand Down
8 changes: 2 additions & 6 deletions meeteval/io/stm.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import sys
import typing
from dataclasses import dataclass
from typing import List, NamedTuple
from typing import List
from meeteval.io.base import Base, BaseLine
import logging
import decimal

from meeteval.io.seglst import SegLstSegment

if typing.TYPE_CHECKING:
from meeteval.wer import ErrorRate

__all__ = [
'STMLine',
'STM',
Expand Down
2 changes: 1 addition & 1 deletion meeteval/wer/wer/error_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__all__ = ['ErrorRate', 'combine_error_rates']

from typing import Optional, List
from typing import Optional, Dict, Any
import logging

logger = logging.getLogger('error_rate')
Expand Down

0 comments on commit b5dcbf8

Please sign in to comment.