From a54eab92d265337996b8e4b4149d9176c2d428a6 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 26 Apr 2020 22:53:50 +0200 Subject: [PATCH] Revert "Change __init__(self) to __new__(cls)" This reverts commit 9ed8b44033e64f2990bf123b5057e92b8142edae. --- docs/advanced/cast/custom.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/cast/custom.rst b/docs/advanced/cast/custom.rst index f8035943..e4f99ac5 100644 --- a/docs/advanced/cast/custom.rst +++ b/docs/advanced/cast/custom.rst @@ -23,7 +23,7 @@ The following Python snippet demonstrates the intended usage from the Python sid .. code-block:: python class A: - def __new__(cls): + def __int__(self): return 123 from example import print