Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nfergu authored Mar 21, 2024
1 parent e593ad3 commit a8ecc34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ Will output something like:

```plaintext
╙── ChildClass instance (id=4355177920)
├─╼ .instance_attribute (instance attribute) (id=4357186944)
├─╼ ContainerClass.instance_attribute (instance attribute) (id=4357186944)
│ └─╼ ContainerClass (object) (id=4355171584)
│ └─╼ my_function.container_variable (local) (id=4355171584)
└─╼ my_function.child_variable (local) (id=4355177920)
```

Although the precise output will vary according to the Python version used.

In this case the instance of `ChildClass` that is passed to `referrers.get_referrer_graph`
is referenced directly by the `child_variable` local variable, and also indirectly
via `ContainerClass.instance_attribute`.
Expand Down

0 comments on commit a8ecc34

Please sign in to comment.