Format None, True, False and NotImplemented as literals (GH-118758)

This commit is contained in:
Serhiy Storchaka 2024-05-08 22:35:16 +03:00 committed by GitHub
parent bcb435ee8f
commit 05c2fe1acd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 85 additions and 83 deletions

View file

@ -627,8 +627,8 @@ Pure paths provide the following methods and properties:
raise ValueError(error_message.format(str(self), str(formatted)))
ValueError: '/etc/passwd' is not in the subpath of '/usr' OR one path is relative and the other is absolute.
When *walk_up* is False (the default), the path must start with *other*.
When the argument is True, ``..`` entries may be added to form the
When *walk_up* is false (the default), the path must start with *other*.
When the argument is true, ``..`` entries may be added to form the
relative path. In all other cases, such as the paths referencing
different drives, :exc:`ValueError` is raised.::