From 86cdb83e1c0ebb583080853e69b422c4e6b30432 Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Sat, 17 Jun 2023 12:39:32 +0200 Subject: [PATCH] fixup! Create Config.annotations_for_path --- src/reuse/_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reuse/_config.py b/src/reuse/_config.py index 9c0dc8a00..6fd6b9d55 100644 --- a/src/reuse/_config.py +++ b/src/reuse/_config.py @@ -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 @@ -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.