Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
a54eab92
Commit
a54eab92
authored
Apr 26, 2020
by
Wenzel Jakob
Browse files
Revert "Change __init__(self) to __new__(cls)"
This reverts commit
9ed8b440
.
parent
2c4cd841
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/advanced/cast/custom.rst
docs/advanced/cast/custom.rst
+1
-1
No files found.
docs/advanced/cast/custom.rst
View file @
a54eab92
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment