def is_after(self, other):
if type(self.val) is not datetime.datetime:<EOL><INDENT>raise TypeError('<STR_LIT>' % type(self.val).__name__)<EOL><DEDENT>if type(other) is not datetime.datetime:<EOL><INDENT>raise TypeError('<STR_LIT>' % type(other).__name__)<EOL><DEDENT>if self.val <= other:<EOL><INDENT>self._err('<STR_LIT>' % (self.val.strftime('<STR_LIT>'), other.strftime('<STR_LIT>')))<EOL><DEDENT>return self<EOL>
Asserts that val is a date and is after other date.