Fix mypy issues.

This commit is contained in:
Adithya Balaji 2020-06-13 03:05:47 -04:00
parent 6e055c0a1b
commit 8452b77c15

View file

@ -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.