Skip to content

Commit

Permalink
fixup! Create Config.annotations_for_path
Browse files Browse the repository at this point in the history
  • Loading branch information
carmenbianca committed Jun 19, 2023
1 parent 4b7ba4a commit c4c4a0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reuse/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from dataclasses import dataclass, field
from gettext import gettext as _
from os import PathLike
from pathlib import Path, PurePath
from pathlib import Path
from typing import Any, Dict, Optional

import yaml
Expand Down Expand Up @@ -84,7 +84,7 @@ def from_yaml(cls, text: str) -> "Config":
# TODO: We could probably smartly cache the results somehow.
def annotations_for_path(self, path: PathLike) -> AnnotateOptions:
"""TODO: Document the precise behaviour."""
path = PurePath(path)
path = Path(path)
result = self.global_annotate_options
# This assumes that the override options are ordered by reverse
# precedence.
Expand Down

0 comments on commit c4c4a0e

Please sign in to comment.