napkin icon indicating copy to clipboard operation
napkin copied to clipboard

Does not support click library

Open eaudet opened this issue 2 years ago • 0 comments

AttributeError: 'NoneType' object has no attribute '__click_params__'

from this hello world example:

import click
import napkin

@click.command()
@click.option(
    "--cache_dir",
    "-cd",
    type=click.Path(
        exists=True, file_okay=False, dir_okay=True, path_type=str, writable=True
    ),
)
@napkin.seq_diagram()
def hello_world(c):
    user = c.object('user')
    world = c.object('world')
    with user:
        world.hello()

if __name__ == "__main__":
    hello_world()

eaudet avatar Mar 25 '22 13:03 eaudet