Fix type hint imports

pull/357/head
nyanpasu64 2019-04-20 19:02:38 -07:00
rodzic 412c8810a8
commit bbb8d6a7b5
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -13,7 +13,7 @@ from corrscope import outputs as outputs_
from corrscope.channel import Channel, ChannelConfig, DefaultLabel from corrscope.channel import Channel, ChannelConfig, DefaultLabel
from corrscope.config import KeywordAttrs, DumpEnumAsStr, CorrError, with_units from corrscope.config import KeywordAttrs, DumpEnumAsStr, CorrError, with_units
from corrscope.layout import LayoutConfig from corrscope.layout import LayoutConfig
from corrscope.outputs import FFmpegOutputConfig from corrscope.outputs import FFmpegOutputConfig, IOutputConfig
from corrscope.renderer import Renderer, RendererConfig, RendererFrontend from corrscope.renderer import Renderer, RendererConfig, RendererFrontend
from corrscope.triggers import CorrelationTriggerConfig, PerFrameCache, SpectrumConfig from corrscope.triggers import CorrelationTriggerConfig, PerFrameCache, SpectrumConfig
from corrscope.util import pushd, coalesce from corrscope.util import pushd, coalesce
@ -167,7 +167,7 @@ class CorrScope:
if not_benchmarking or benchmark_mode == BenchmarkMode.OUTPUT: if not_benchmarking or benchmark_mode == BenchmarkMode.OUTPUT:
self.output_cfgs = arg.outputs self.output_cfgs = arg.outputs
else: else:
self.output_cfgs = [] self.output_cfgs = [] # type: List[IOutputConfig]
if len(self.cfg.channels) == 0: if len(self.cfg.channels) == 0:
raise CorrError("Config.channels is empty") raise CorrError("Config.channels is empty")

Wyświetl plik

@ -47,6 +47,7 @@ from corrscope.gui.model_bind import (
) )
from corrscope.gui.util import color2hex, Locked, find_ranges, TracebackDialog from corrscope.gui.util import color2hex, Locked, find_ranges, TracebackDialog
from corrscope.gui.view_mainwindow import MainWindow as Ui_MainWindow from corrscope.gui.view_mainwindow import MainWindow as Ui_MainWindow
from corrscope.gui.widgets import ChannelTableView, ShortcutButton
from corrscope.layout import Orientation, StereoOrientation from corrscope.layout import Orientation, StereoOrientation
from corrscope.outputs import IOutputConfig, FFplayOutputConfig from corrscope.outputs import IOutputConfig, FFplayOutputConfig
from corrscope.renderer import LabelPosition from corrscope.renderer import LabelPosition