Skip to content

Commit db1a305

Browse files
committed
No need to check for None, and no point in deprecating
1 parent 48238d6 commit db1a305

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

doc/api/next_api_changes/deprecations/30198-JKS.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

lib/matplotlib/path.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,21 @@ def __deepcopy__(self, memo):
290290
p._readonly = False
291291
return p
292292

293-
@_api.delete_parameter("3.11", "memo")
294293
def deepcopy(self, memo=None):
295294
"""
296295
Return a deep copy of the `Path`. The `Path` will not be readonly,
297296
even if the source `Path` is.
297+
298+
Parameters
299+
----------
300+
memo : dict, optional
301+
A dictionary to use for memoizing, passed to `copy.deepcopy`.
302+
303+
Returns
304+
-------
305+
Path
306+
A deep copy of the `Path`, but not readonly.
298307
"""
299-
if memo is None:
300-
memo = {}
301308
return copy.deepcopy(self, memo)
302309

303310
@classmethod

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy