Add the type property for OptCheck to fix a pylint error