From 21e6b8da3ba3b67be308984e218d19f414aa1cc2 Mon Sep 17 00:00:00 2001 From: Ricardo Bin Date: Wed, 18 Mar 2020 17:50:19 -0300 Subject: [PATCH] fix: graph_attr example `graphviz` only support string or byte-like objects as value in attributes. The example was passing `fontsize` as `int` that throws `TypeError`. Just fixing the example --- docs/guides/diagram.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/diagram.md b/docs/guides/diagram.md index cc36490..8420e36 100644 --- a/docs/guides/diagram.md +++ b/docs/guides/diagram.md @@ -83,7 +83,7 @@ from diagrams import Diagram from diagrams.aws.compute import EC2 graph_attr = { - "fontsize": 45, + "fontsize": "45", "bgcolor": "transparent" }