piccolo-orm / targ

Python CLI using type hints and docstrings.
https://targ.readthedocs.io/en/latest/index.html
MIT License
20 stars 2 forks source link

add support for t.Optional types #3

Closed dantownsend closed 3 years ago

dantownsend commented 3 years ago

Annotations like this now work properly:

import typing as t

def my_command(arg1: t.Optional[bool] = None):
    ...