Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MNT: remove decorator frames from traceback#30778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
timhoffm wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromtimhoffm:decorator-tracebackhide
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletionslib/matplotlib/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1502,6 +1502,8 @@ def func(foo, label=None): ...

@functools.wraps(func)
definner(ax,*args,data=None,**kwargs):
__tracebackhide__=True

ifdataisNone:
returnfunc(
ax,
Expand Down
7 changes: 7 additions & 0 deletionslib/matplotlib/_api/deprecation.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -194,6 +194,7 @@ def emit_warning():
removal=removal)

def wrapper(*args, **kwargs):
__tracebackhide__ = True
emit_warning()
return func(*args, **kwargs)

Expand DownExpand Up@@ -286,6 +287,8 @@ def func(good_name): ...

@functools.wraps(func)
def wrapper(*args, **kwargs):
__tracebackhide__ = True

if old in kwargs:
warn_deprecated(
since, message=f"The {old!r} parameter of {func.__name__}() "
Expand DownExpand Up@@ -376,6 +379,8 @@ def func(used_arg, other_arg, unused, more_args): ...

@functools.wraps(func)
def wrapper(*inner_args, **inner_kwargs):
__tracebackhide__ = True

if len(inner_args) <= name_idx and name not in inner_kwargs:
# Early return in the simple, non-deprecated case (much faster than
# calling bind()).
Expand DownExpand Up@@ -441,6 +446,8 @@ def make_keyword_only(since, name, func=None):

@functools.wraps(func)
def wrapper(*args, **kwargs):
__tracebackhide__ = True

# Don't use signature.bind here, as it would fail when stacked with
# rename_parameter and an "old" argument name is passed in
# (signature.bind would fail, but the actual call would succeed).
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp