Skip to content

Commit 25c9bde

Browse files
authored
Path.__call__ deprecation not shown in docs (#801)
1 parent 0a6ff69 commit 25c9bde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jsonargparse/_deprecated.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"ActionPathList",
2525
"HelpFormatterDeprecations",
2626
"LoggerProperty",
27+
"PathDeprecations",
2728
"ParserDeprecations",
2829
"ParserError",
2930
"compose_dataclasses",
@@ -499,8 +500,8 @@ def skip_check(self, skip_check):
499500
deprecation_warning("Path attr set", path_immutable_attrs_message)
500501
self._skip_check = skip_check
501502

503+
@deprecated(path_call_message)
502504
def __call__(self, absolute: bool = True) -> str:
503-
deprecation_warning("Path.__call__", path_call_message)
504505
return self._absolute if absolute else self._relative
505506

506507

0 commit comments

Comments
 (0)