Closed timhemel closed 3 years ago
If I start the program, it crashes with an AttributeError. This is because of a failed import of tap, see issue swansonk14/typed-argument-parser#55.
I worked around it by changing my installed tap:
--- tap.py.orig 2021-06-06 23:22:00.000000000 +0200 +++ tap.py 2021-06-06 23:19:41.000000000 +0200 @@ -32,7 +32,8 @@ # Constants -EMPTY_TYPE = get_args(List)[0] if len(get_args(List)) > 0 else tuple() +# EMPTY_TYPE = get_args(List)[0] if len(get_args(List)) > 0 else tuple() +EMPTY_TYPE = tuple() BOXED_COLLECTION_TYPES = {List, list, Set, set, Tuple, tuple} OPTIONAL_TYPES = {Optional, Union} BOXED_TYPES = BOXED_COLLECTION_TYPES | OPTIONAL_TYPES
If I start the program, it crashes with an AttributeError. This is because of a failed import of tap, see issue swansonk14/typed-argument-parser#55.
I worked around it by changing my installed tap: