mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 22:34:17 +00:00
Fix mypy issues.
This commit is contained in:
parent
6e055c0a1b
commit
8452b77c15
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ def handle_option_data(data):
|
||||||
|
|
||||||
|
|
||||||
def handle_toml_data(config, section, data):
|
def handle_toml_data(config, section, data):
|
||||||
# type: (configparse.RawConfgParser, Any, Any) -> None
|
# type: (configparser.RawConfigParser, Any, Any) -> None
|
||||||
if isinstance(data, dict):
|
if isinstance(data, dict):
|
||||||
for option_or_section, nested_data in data.items():
|
for option_or_section, nested_data in data.items():
|
||||||
if isinstance(nested_data, dict):
|
if isinstance(nested_data, dict):
|
||||||
|
|
@ -42,7 +42,7 @@ def handle_toml_data(config, section, data):
|
||||||
|
|
||||||
|
|
||||||
def toml_shim(config, toml_file):
|
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.
|
"""Reads a toml version of flake8's configuration file.
|
||||||
|
|
||||||
This method only supports flake8 nested configs of max depth 2.
|
This method only supports flake8 nested configs of max depth 2.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue