Skip to content

Commit

Permalink
Remove extra underscore. (python#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtbucher authored and Rosuav committed Oct 4, 2019
1 parent 10aa84e commit a04dbb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pep-0487.txt
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ As a second change, the new ``type.__init__`` just ignores keyword
arguments. Currently, it insists that no keyword arguments are given. This
leads to a (wanted) error if one gives keyword arguments to a class declaration
if the metaclass does not process them. Metaclass authors that do want to
accept keyword arguments must filter them out by overriding ``__init___``.
accept keyword arguments must filter them out by overriding ``__init__``.

In the new code, it is not ``__init__`` that complains about keyword arguments,
but ``__init_subclass__``, whose default implementation takes no arguments. In
Expand Down

0 comments on commit a04dbb5

Please sign in to comment.