From d3f767742395b340c542dda9549cdf882492940c Mon Sep 17 00:00:00 2001 From: coolneng Date: Sat, 13 Nov 2021 14:28:39 +0100 Subject: [PATCH] Correct extract_adapters type hint --- src/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser.py b/src/parser.py index 719e41e..c3d96b4 100644 --- a/src/parser.py +++ b/src/parser.py @@ -1,5 +1,5 @@ from glob import glob -from typing import List +from typing import List, Union from pandas import DataFrame, read_html @@ -9,7 +9,7 @@ def find_html_files(path) -> List: return file_list -def extract_adapters(files) -> DataFrame: +def extract_adapters(files) -> Union[DataFrame, None]: all_adapters = DataFrame() for entry in files: tables = read_html(entry)