Skip to content
Snippets Groups Projects
Commit 434aef55 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

TEST FIX

parent fe64ead7
No related branches found
No related tags found
No related merge requests found
{"a":2}
\ No newline at end of file
...@@ -234,6 +234,8 @@ class CallSignature(object): ...@@ -234,6 +234,8 @@ class CallSignature(object):
def __typeinfo_to_tuple_of_types(typeinfo): def __typeinfo_to_tuple_of_types(typeinfo):
if typeinfo == 'self':
return None
if typeinfo is None: if typeinfo is None:
return (type(None),) return (type(None),)
elif typeinfo == int and six.PY2: elif typeinfo == int and six.PY2:
...@@ -281,7 +283,6 @@ def typed(*t_args, **t_kwargs): ...@@ -281,7 +283,6 @@ def typed(*t_args, **t_kwargs):
:param t_kwargs: :param t_kwargs:
""" """
t_args = [q if t_args != 'self' else None for q in t_args]
t_args = [(__typeinfo_to_tuple_of_types(x) if x is not None else None) for x in t_args] t_args = [(__typeinfo_to_tuple_of_types(x) if x is not None else None) for x in t_args]
t_retarg = t_kwargs.get('returns', None) t_retarg = t_kwargs.get('returns', None)
......
...@@ -10,6 +10,9 @@ from .metrics import Metric, RUNTIME ...@@ -10,6 +10,9 @@ from .metrics import Metric, RUNTIME
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
DISABLED = 0
DEBUG = 1
RUNTIME = 2
class InstrumentList(list): class InstrumentList(list):
def __init__(self, children): def __init__(self, children):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment