Made bool typehint strict