def check_and_update_variable_bindings(self, bound_variables: MutableSet['Variable']) -> None:
if self in bound_variables:
raise RedefinedNameError('Variable {0!s} is defined twice'.format(self))
bound_variables.add(self)
评论列表
文章目录