Disallow untyped calls and incomplete defs

This commit is contained in:
2021-01-20 10:48:03 -06:00
parent 7555f561f8
commit 947189f25f
6 changed files with 47 additions and 30 deletions

View File

@@ -4,19 +4,20 @@
import logging
import sys
from typing import Any, List
logger = logging.getLogger(__name__)
class RedirectOutput:
def __init__(self, streams):
def __init__(self, streams: List[Any]):
self.streams = streams
def write(self, data):
def write(self, data: Any) -> None:
for stream in self.streams:
stream.write(data)
def flush(self):
def flush(self) -> None:
for stream in self.streams:
stream.flush()