@classmethod<EOL><INDENT>def is_dtype(cls, dtype):<DEDENT>
if isinstance(dtype, str):<EOL><INDENT>if dtype.startswith('<STR_LIT>') or dtype.startswith('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>if cls._parse_dtype_strict(dtype) is not None:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return super(PeriodDtype, cls).is_dtype(dtype)<EOL>
Return a boolean if we if the passed type is an actual dtype that we
can match (via string or type)