diff --git a/jsonargparse/_deprecated.py b/jsonargparse/_deprecated.py index f2e62627..37e56a2a 100644 --- a/jsonargparse/_deprecated.py +++ b/jsonargparse/_deprecated.py @@ -24,6 +24,7 @@ "ActionPathList", "HelpFormatterDeprecations", "LoggerProperty", + "PathDeprecations", "ParserDeprecations", "ParserError", "compose_dataclasses", @@ -499,8 +500,8 @@ def skip_check(self, skip_check): deprecation_warning("Path attr set", path_immutable_attrs_message) self._skip_check = skip_check + @deprecated(path_call_message) def __call__(self, absolute: bool = True) -> str: - deprecation_warning("Path.__call__", path_call_message) return self._absolute if absolute else self._relative