How do I typehint that a function may either return a value or not return anything? What seems to be correct to me is being reported by PyCharm.