Skip to content

Commit 6b390db

Browse files
committed
Unbreak tests after 9173825
1 parent 9173825 commit 6b390db

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

bpython/inspection.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,7 @@ def _fix_default_values(f: Callable, argspec: ArgSpec) -> ArgSpec:
185185
# some situations. See issue #94.
186186
return argspec
187187
except TypeError:
188-
# No source code is available (for Python >= 3.11)
189-
#
190-
# If the function is a builtin, we replace the default values.
191-
# Otherwise, let's bail out.
192-
if not inspect.isbuiltin(f):
193-
raise
194-
188+
# No source code is available, so replace the default values with what we have.
195189
if argspec.defaults is not None:
196190
argspec.defaults = [_Repr(str(value)) for value in argspec.defaults]
197191
if argspec.kwonly_defaults is not None:

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