Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use types.NoneType rather than defining NoneType in BoTorch (#2338)
Summary: Pull Request resolved: #2338 - Rremove BoTorch `NoneType` and replace its usages with `types.NoneType`, since as of Python 3.10, types.NoneType (once again) exists. - Use `None` or `Optional` for the purposes of type-hinting (and only for type-hinting) in place of `NoneType` since they are equivalent for type-hinting, although not in general. Reviewed By: saitcakmak Differential Revision: D57172472 fbshipit-source-id: b5be445caaf738ac8e227bd6595031c66f22d85e
- Loading branch information