Lint exclusions (#28655)

* Remove malformed pylint disable markers

* Remove some unused imports

* Remove some unneeded lint exclusions

* Remove more unneeded lint exclusions

* Add specific codes to all noqa's
This commit is contained in:
Ville Skyttä 2019-11-16 11:22:07 +02:00 committed by Fabian Affolter
parent 2aee366a1f
commit d88ca0f5cb
73 changed files with 113 additions and 142 deletions

View file

@ -76,14 +76,14 @@ def _add_reference(
...
@overload # noqa: F811
@overload
def _add_reference(
obj: Union[str, NodeStrClass], loader: yaml.SafeLoader, node: yaml.nodes.Node
) -> NodeStrClass:
...
@overload # noqa: F811
@overload
def _add_reference(
obj: DICT_T, loader: yaml.SafeLoader, node: yaml.nodes.Node
) -> DICT_T:
@ -93,7 +93,7 @@ def _add_reference(
# pylint: enable=pointless-statement
def _add_reference( # type: ignore # noqa: F811
def _add_reference( # type: ignore
obj, loader: SafeLineLoader, node: yaml.nodes.Node
):
"""Add file reference information to an object."""