More compatible type hints.

This commit is contained in:
Chris Berkhout 2021-09-14 09:07:11 +02:00
parent 38beaef3be
commit 77a77e76c8
5 changed files with 15 additions and 10 deletions

View file

@ -1,4 +1,5 @@
import logging
from typing import List, Tuple
import pytest
@ -22,13 +23,13 @@ class TestSource(BaseSource):
def start(self) -> str:
return ""
def types(self) -> list[str]:
def types(self) -> List[str]:
return []
def notes(self) -> str:
return ""
def symbols(self) -> list[(str, str)]:
def symbols(self) -> List[Tuple[str, str]]:
return []
def fetch(self, series: Series) -> Series: