hug
hug copied to clipboard
Hug and mypy?
Hi.
Does hug's use of type annotations play nicely with mypy's use of type annotations?
Thanks.
No it doesn't. I've just ended up listing each function arguments on its own line with the # type: ignore comment:
@hug.post('/foo')
def foo(
name: hug.types.text, # type: ignore
is_cool: hug.types.boolean # type: ignore
):
...