openff-evaluator
openff-evaluator copied to clipboard
from_json doesn't necessarily return an instance of the class
Describe the bug
This is minor but I was thrown that PhysicalPropertyDataSet.from_json(request_result_file) returned a RequestResult instead of throwing an error.
To Reproduce
from openff.evaluator.datasets.datasets import PhysicalPropertyDataSet
PhysicalPropertyDataSet.from_json("empty_result.json")
Output
Computing environment (please complete the following information):
- Operating system
- Output of running
conda list
Additional context
Using current main branch.