mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-23 22:01:26 +08:00
Better debugging
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
default otherwise.
|
default otherwise.
|
||||||
- ``CachedMetaClass`` uses ``_memoize_default`` to do the same with classes.
|
- ``CachedMetaClass`` uses ``_memoize_default`` to do the same with classes.
|
||||||
"""
|
"""
|
||||||
|
from functools import wraps
|
||||||
|
|
||||||
from jedi import debug
|
from jedi import debug
|
||||||
|
|
||||||
@@ -86,6 +87,7 @@ def inference_state_method_generator_cache():
|
|||||||
recursion errors and returns no further iterator elemends in that case.
|
recursion errors and returns no further iterator elemends in that case.
|
||||||
"""
|
"""
|
||||||
def func(function):
|
def func(function):
|
||||||
|
@wraps(function)
|
||||||
def wrapper(obj, *args, **kwargs):
|
def wrapper(obj, *args, **kwargs):
|
||||||
cache = obj.inference_state.memoize_cache
|
cache = obj.inference_state.memoize_cache
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user