From 1cb58a5536e3ba2591aa49988c5f525850d9b7e5 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Tue, 12 Mar 2024 19:12:43 +0100 Subject: [PATCH] Fixed make_class example. (#1258) The example only makes sense if `C2` is the class examined, as that's the one we dynamically created. --- docs/examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples.md b/docs/examples.md index 0f8301aa..15f8beee 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -689,7 +689,7 @@ Sometimes you may want to create a class programmatically. >>> C2 = make_class("C2", {"x": field(type=int), "y": field()}) >>> fields(C1) == fields(C2) True ->>> fields(C1).x.type +>>> fields(C2).x.type ```