Skip to content

Commit 5e8e4e7

Browse files
committed
Probably should handle Optional[bool]
1 parent 33fefb8 commit 5e8e4e7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/hdx/facades/infer_arguments.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ def facade(projectmainfn: Callable[[Any], None], **kwargs: Any):
7171
case "str" | "Path" | "Path | str":
7272
param_type = "str | None"
7373
default = None
74+
case "Optional[bool]" | "bool | None":
75+
param_type = "bool | None"
76+
default = None
7477
case "bool":
7578
default = False
7679
case _:

0 commit comments

Comments
 (0)