@@ -490,7 +490,7 @@ Pure paths provide the following methods and properties:
490
490
True
491
491
492
492
493
- .. method :: PurePath.is_relative_to(* other)
493
+ .. method :: PurePath.is_relative_to(other)
494
494
495
495
Return whether or not this path is relative to the *other * path.
496
496
@@ -502,6 +502,10 @@ Pure paths provide the following methods and properties:
502
502
503
503
.. versionadded :: 3.9
504
504
505
+ .. deprecated-removed :: 3.12 3.14
506
+
507
+ Passing additional arguments is deprecated; if supplied, they are joined
508
+ with *other *.
505
509
506
510
.. method :: PurePath.is_reserved()
507
511
@@ -564,7 +568,7 @@ Pure paths provide the following methods and properties:
564
568
True
565
569
566
570
567
- .. method :: PurePath.relative_to(* other, walk_up=False)
571
+ .. method :: PurePath.relative_to(other, walk_up=False)
568
572
569
573
Compute a version of this path relative to the path represented by
570
574
*other *. If it's impossible, :exc: `ValueError ` is raised::
@@ -581,7 +585,7 @@ Pure paths provide the following methods and properties:
581
585
raise ValueError(error_message.format(str(self), str(formatted)))
582
586
ValueError: '/etc/passwd' is not in the subpath of '/usr' OR one path is relative and the other is absolute.
583
587
584
- When *walk_up * is False (the default), the path must start with *other *.
588
+ When *walk_up * is False (the default), the path must start with *other *.
585
589
When the argument is True, ``.. `` entries may be added to form the
586
590
relative path. In all other cases, such as the paths referencing
587
591
different drives, :exc: `ValueError ` is raised.::
@@ -605,6 +609,10 @@ When *walk_up* is False (the default), the path must start with *other*.
605
609
.. versionadded :: 3.12
606
610
The *walk_up * argument (old behavior is the same as ``walk_up=False ``).
607
611
612
+ .. deprecated-removed :: 3.12 3.14
613
+
614
+ Passing additional positional arguments is deprecated; if supplied,
615
+ they are joined with *other *.
608
616
609
617
.. method :: PurePath.with_name(name)
610
618
0 commit comments