Skip to content

Commit

Permalink
Fixed some formatting issues in the new "constructor" chapter that ca… (
Browse files Browse the repository at this point in the history
#1708)

Fixed some formatting issues in the new "constructor" chapter that caused problems in the table of contents.
  • Loading branch information
erictraut committed Apr 11, 2024
1 parent 1c3b7df commit 0256c38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/spec/constructors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Type checkers should mirror this runtime behavior when analyzing a constructor
call.

Metaclass ``__call__`` Method
=============================
-----------------------------

When evaluating a constructor call, a type checker should first check if the
class has a custom metaclass (a subclass of ``type``) that defines a ``__call__``
Expand Down Expand Up @@ -52,7 +52,7 @@ the ``cls`` parameter.


``__new__`` Method
==================
------------------

After the metaclass ``__call__`` method has been evaluated, a type checker
should evaluate the ``__new__`` method of the class (if applicable) using
Expand Down Expand Up @@ -173,7 +173,7 @@ errors that arise during binding.


``__init__`` Method
===================
-------------------

After evaluating the ``__new__`` method, a type checker should evaluate the
``__init__`` method (if applicable) using the supplied arguments. If the class
Expand Down Expand Up @@ -274,7 +274,7 @@ within a type annotation for the ``self`` parameter in an ``__init__`` method.


Classes Without ``__new__`` and ``__init__`` Methods
====================================================
----------------------------------------------------

If a class does not define a ``__new__`` method or ``__init__`` method and
does not inherit either of these methods from a base class other than
Expand Down

0 comments on commit 0256c38

Please sign in to comment.