Skip to content

Commit

Permalink
Added traceback type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Apr 13, 2017
1 parent daffa8c commit 7584139
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions promise/promise.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from functools import partial, wraps
from sys import version_info, exc_info
from threading import Event, RLock
from types import TracebackType

from six import reraise
from typing import (List, Any, Callable, Dict, Iterator, Optional, # flake8: noqa
Expand Down Expand Up @@ -60,7 +61,7 @@ def make_self_resolution_error():
_error_obj = {
'e': None,
't': None
} # type: Dict[str, Union[None, Exception]]
} # type: Dict[str, Union[None, Exception, TracebackType]]


def try_catch(handler, *args, **kwargs):
Expand Down Expand Up @@ -99,7 +100,7 @@ class Promise(object):
_promise0 = None # type: Promise
_future = None # type: Future
_event_instance = None # type: Event
_traceback = None
_traceback = None # type: TracebackType
# _trace = None
_is_waiting = False

Expand Down

0 comments on commit 7584139

Please sign in to comment.