diff --git a/src/ansiblelint/file_utils.py b/src/ansiblelint/file_utils.py index c8ab17c1074..0fc8d57c2c8 100644 --- a/src/ansiblelint/file_utils.py +++ b/src/ansiblelint/file_utils.py @@ -12,9 +12,9 @@ from typing import TYPE_CHECKING, Any, cast import pathspec -from ansible.parsing.plugin_docs import read_docstring import wcmatch.pathlib import wcmatch.wcmatch +from ansible.parsing.plugin_docs import read_docstring from yaml.error import YAMLError from ansiblelint.config import BASE_KINDS, Options, options @@ -269,7 +269,6 @@ def __init__( self.path = Path(self.file.name) self.base_kind = "text/yaml" - def __del__(self) -> None: if hasattr(self, "file"): self.file.close()