mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
bpo-15450: Allow subclassing of dircmp (GH-23424) (#23424)
Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
This commit is contained in:
parent
ff420f0e08
commit
2f2f9d0b5c
5 changed files with 60 additions and 13 deletions
|
|
@ -173,7 +173,13 @@ The :class:`dircmp` class
|
|||
.. attribute:: subdirs
|
||||
|
||||
A dictionary mapping names in :attr:`common_dirs` to :class:`dircmp`
|
||||
objects.
|
||||
instances (or MyDirCmp instances if this instance is of type MyDirCmp, a
|
||||
subclass of :class:`dircmp`).
|
||||
|
||||
.. versionchanged:: 3.10
|
||||
Previously entries were always :class:`dircmp` instances. Now entries
|
||||
are the same type as *self*, if *self* is a subclass of
|
||||
:class:`dircmp`.
|
||||
|
||||
.. attribute:: DEFAULT_IGNORES
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue