def _reset_cache(self, key=None):
if getattr(self, '<STR_LIT>', None) is None:<EOL><INDENT>return<EOL><DEDENT>if key is None:<EOL><INDENT>self._cache.clear()<EOL><DEDENT>else:<EOL><INDENT>self._cache.pop(key, None)<EOL><DEDENT>
Reset cached properties. If ``key`` is passed, only clears that key.