def optional(strategy): """Return an optional version of the supplied strategy.""" return st.one_of(st.none(), strategy)