From 8452b77c153608369487ce7bfd01e2ab42a7274e Mon Sep 17 00:00:00 2001 From: Adithya Balaji Date: Sat, 13 Jun 2020 03:05:47 -0400 Subject: [PATCH] Fix mypy issues. --- src/flake8/options/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py index f2b244a..98c56d3 100644 --- a/src/flake8/options/config.py +++ b/src/flake8/options/config.py @@ -21,7 +21,7 @@ def handle_option_data(data): def handle_toml_data(config, section, data): - # type: (configparse.RawConfgParser, Any, Any) -> None + # type: (configparser.RawConfigParser, Any, Any) -> None if isinstance(data, dict): for option_or_section, nested_data in data.items(): if isinstance(nested_data, dict): @@ -42,7 +42,7 @@ def handle_toml_data(config, section, data): def toml_shim(config, toml_file): - # type: (configparse.RawConfgParser, str) -> List[str] + # type: (configparser.RawConfigParser, str) -> List[str] """Reads a toml version of flake8's configuration file. This method only supports flake8 nested configs of max depth 2.