Skip to content

Commit

Permalink
Improve _PathBase docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Aug 28, 2023
1 parent 8944098 commit b61141a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,17 @@ class PureWindowsPath(PurePath):


class _PathBase(PurePath):
"""PurePath subclass for virtual filesystems, such as archives and remote
storage.
"""Base class for concrete path objects.
This class provides dummy implementations for many methods that derived
classes can override selectively; the default implementations raise
UnsupportedOperation. The most basic methods, such as stat() and open(),
directly raise UnsupportedOperation; these basic methods are called by
other methods such as is_dir() and read_text().
The Path class derives this class to implement local filesystem paths.
Users may derive their own classes to implement virtual filesystem paths,
such as paths in archive files or on remote storage systems.
"""
__slots__ = ()
__bytes__ = None
Expand Down

0 comments on commit b61141a

Please sign in to comment.