@@ -320,8 +320,8 @@ language and is out of scope for this PEP.
320320Rejected Ideas
321321==============
322322
323- Keep the ability to use function local state when defining annotations
324- ----------------------------------------------------------------------
323+ Keeping the ability to use function local state when defining annotations
324+ -------------------------------------------------------------------------
325325
326326With postponed evaluation, this would require keeping a reference to
327327the frame in which an annotation got created. This could be achieved
@@ -340,8 +340,8 @@ have to use local variables, it can populate the given generated
340340object's ``__annotations__ `` dictionary directly, without relying on
341341the compiler.
342342
343- Disallow local state usage for classes, too
344- -------------------------------------------
343+ Disallowing local state usage for classes, too
344+ ----------------------------------------------
345345
346346This PEP originally proposed limiting names within annotations to only
347347allow names from the model-level scope, including for classes. The
@@ -359,8 +359,8 @@ local scope access is required for class decorators to be able to
359359evaluate type annotations. This is because class decorators are applied
360360before the class receives its name in the outer scope.
361361
362- Introduce a new dictionary for the string literal form instead
363- --------------------------------------------------------------
362+ Introducing a new dictionary for the string literal form instead
363+ ----------------------------------------------------------------
364364
365365Yury Selivanov shared the following idea:
366366
@@ -388,8 +388,8 @@ recognize that forward references are allowed.
388388Finally, just-in-time evaluation in ``__annotations__ `` is an
389389unnecessary step if ``get_type_hints() `` is used later.
390390
391- Drop annotations with -O
392- ------------------------
391+ Dropping annotations with -O
392+ ----------------------------
393393
394394There are two reasons this is not satisfying for the purpose of this
395395PEP.
0 commit comments