The signature for an optional boolean should be Optional[Union[bool, Bool]] rather than Optional[Bool]. Without the other part of the signature, you get:
Note: it appears that Optional[bool, Bool] can (now?) be used as shorthand for the above. If this feature is in python 3.7 on, we should also consider simplifying the generator to remove some of the Union noise.
The signature for an optional boolean should be
Optional[Union[bool, Bool]]
rather thanOptional[Bool]
. Without the other part of the signature, you get:Note: it appears that
Optional[bool, Bool]
can (now?) be used as shorthand for the above. If this feature is in python 3.7 on, we should also consider simplifying the generator to remove some of theUnion
noise.