Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect labes for dict keys #49

Open
graingert opened this issue Aug 17, 2020 · 1 comment · May be fixed by #50
Open

incorrect labes for dict keys #49

graingert opened this issue Aug 17, 2020 · 1 comment · May be fixed by #50
Labels

Comments

@graingert
Copy link

import objgraph

objgraph.show_refs({"a": None, "b": None}, filename="bad.png")

output:

bad

@graingert
Copy link
Author

graingert commented Aug 17, 2020

actual:

digraph ObjectGraph {
  node[shape=box, style=filled, fillcolor=white];
  o140231118682496[fontcolor=red];
  o140231118682496[label="dict\n2 items"];
  o140231118682496[fillcolor="0,0,1"];
  o140231118682496 -> o9447968 [label="a",weight=2];
  o140231118682496 -> o9447968 [label="a",weight=2];
  o9447968[label="NoneType\nNone"];
  o9447968[fillcolor="0,0,0.766667"];
}

expected diff:

--- bad.dot     2020-08-17 22:47:05.690718600 +0100
+++ good.dot    2020-08-17 22:48:15.922067400 +0100
@@ -4,7 +4,7 @@
   o140231118682496[label="dict\n2 items"];
   o140231118682496[fillcolor="0,0,1"];
   o140231118682496 -> o9447968 [label="a",weight=2];
-  o140231118682496 -> o9447968 [label="a",weight=2];
+  o140231118682496 -> o9447968 [label="b",weight=2];
   o9447968[label="NoneType\nNone"];
   o9447968[fillcolor="0,0,0.766667"];
 }

graingert added a commit to graingert/objgraph that referenced this issue Aug 17, 2020
graingert added a commit to graingert/objgraph that referenced this issue Aug 17, 2020
@graingert graingert linked a pull request Aug 17, 2020 that will close this issue
graingert added a commit to graingert/objgraph that referenced this issue Aug 17, 2020
graingert added a commit to graingert/objgraph that referenced this issue Aug 17, 2020
graingert added a commit to graingert/objgraph that referenced this issue Aug 17, 2020
graingert added a commit to graingert/objgraph that referenced this issue Aug 18, 2020
@mgedmin mgedmin added the bug label Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants