shared_value_postprocessor

shared_value_postprocessor#

Postprocessor to annotate repetitions of mutable values.

This can be useful for figuring out when multiple mutable objects in a tree are all references to the same object.

Classes

DynamicSharedCheck

Dynamic group that renders its child only if a node is shared.

SharedWarningLabel

A comment identifying this shared Python object.

WithDynamicSharedPip

Dynamic group that adds an orange marker to its child if it is shared.

Functions

check_for_shared_values(node, path, ...)

Wrapper hook to check for and annotate shared values.

setup_shared_value_context()

Returns a context manager for the shared value context.