This patch fixes "builds()", so that when passed "infer" for an
argument with a non-"typing.Optional" type annotation and a default
value of "None" to build a class which defines an explicit
"signature" attribute, either "None" or that type may be
generated.
This is unlikely to happen unless you are using pydantic (issue
#2648).
The canonical version of these notes (with links) is on readthedocs.