From 1093f98defb2e403da464536aa3e5ea0dda4e321 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sun, 26 Aug 2018 12:23:01 +0200 Subject: [PATCH] Improve alias signatures --- lib/matplotlib/cbook/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/matplotlib/cbook/__init__.py b/lib/matplotlib/cbook/__init__.py index 74a1c7edba96..20cc748abbb2 100644 --- a/lib/matplotlib/cbook/__init__.py +++ b/lib/matplotlib/cbook/__init__.py @@ -1915,6 +1915,7 @@ class so far, an alias named ``get_alias`` will be defined; the same will return functools.partial(_define_aliases, alias_d) def make_alias(name): # Enforce a closure over *name*. + @functools.wraps(getattr(cls, name)) def method(self, *args, **kwargs): return getattr(self, name)(*args, **kwargs) return method 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