Fix typo in README, add missing typehint and remove unnecessary check