Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Aug 9, 2024
1 parent fd90b15 commit 1b97ec5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/rattler_build_conda_compat/yaml.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from ruamel.yaml import YAML
from typing import Any
import io
from typing import Any

from ruamel.yaml import YAML


def _yaml_object() -> YAML:
yaml = YAML(typ="rt")
Expand All @@ -10,7 +12,8 @@ def _yaml_object() -> YAML:
yaml.indent(mapping=2, sequence=4, offset=2)
return yaml

def _dump_yaml_to_string(data: Any) -> str:

def _dump_yaml_to_string(data: Any) -> str: # noqa: ANN401
yaml = _yaml_object()
with io.StringIO() as f:
yaml.dump(data, f)
Expand Down

0 comments on commit 1b97ec5

Please sign in to comment.