multiple type handling with option raises error

Hyunjun Kim avatarHyunjun Kim created an issue
import typequery

amp = typequery.GenericMethod('amp')

def amp(value, **options):
        amp_x = options['amp_x']
    except KeyError:
        amp_x = 1
    return value * amp_x

if __name__ == '__main__':
    print amp(1, amp_x=5)
$ python
Traceback (most recent call last):
  File "", line 15, in <module>
    print amp(1, amp_x=5)
  File "~/venv/local/lib/python2.7/site-packages/TypeQuery-0.1.2-py2.7.egg/", line 214, in __call__
    return f(*args, **kwargs)
TypeError: 'tuple' object is not callable
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.