dfdsf
This commit is contained in:
@@ -119,18 +119,36 @@ def debug_inspect(
|
||||
if not effective_title and prefix:
|
||||
effective_title = prefix
|
||||
|
||||
rich_inspect(
|
||||
obj,
|
||||
console=console,
|
||||
title=effective_title,
|
||||
methods=methods,
|
||||
docs=docs,
|
||||
private=private,
|
||||
dunder=dunder,
|
||||
sort=sort,
|
||||
all=all,
|
||||
value=value,
|
||||
)
|
||||
# Show full identifiers (hashes/paths) without Rich shortening.
|
||||
# Guard for older Rich versions which may not support max_* parameters.
|
||||
try:
|
||||
rich_inspect(
|
||||
obj,
|
||||
console=console,
|
||||
title=effective_title,
|
||||
methods=methods,
|
||||
docs=docs,
|
||||
private=private,
|
||||
dunder=dunder,
|
||||
sort=sort,
|
||||
all=all,
|
||||
value=value,
|
||||
max_string=100_000,
|
||||
max_length=100_000,
|
||||
)
|
||||
except TypeError:
|
||||
rich_inspect(
|
||||
obj,
|
||||
console=console,
|
||||
title=effective_title,
|
||||
methods=methods,
|
||||
docs=docs,
|
||||
private=private,
|
||||
dunder=dunder,
|
||||
sort=sort,
|
||||
all=all,
|
||||
value=value,
|
||||
)
|
||||
|
||||
def log(*args, **kwargs) -> None:
|
||||
"""Print with automatic file.function prefix.
|
||||
|
||||
Reference in New Issue
Block a user