← Back to DAGDA | Support | Source: https://github.com/ambv/static-annotations/commit/74824c3891e6e64ea259932e91d85f4009a6dce2
Skip to content
This repository was archived by the owner on Jun 22, 2020. It is now read-only.

Commit 74824c3

Browse files
author
Lukasz Langa
committed
Continuous tense for rejected ideas
1 parent 47d5fb6 commit 74824c3

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎pep-0563.rst‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ language and is out of scope for this PEP.
320320
Rejected 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

326326
With postponed evaluation, this would require keeping a reference to
327327
the 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
340340
object's ``__annotations__`` dictionary directly, without relying on
341341
the compiler.
342342

343-
Disallow local state usage for classes, too
344-
-------------------------------------------
343+
Disallowing local state usage for classes, too
344+
----------------------------------------------
345345

346346
This PEP originally proposed limiting names within annotations to only
347347
allow 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
359359
evaluate type annotations. This is because class decorators are applied
360360
before 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

365365
Yury Selivanov shared the following idea:
366366

@@ -388,8 +388,8 @@ recognize that forward references are allowed.
388388
Finally, just-in-time evaluation in ``__annotations__`` is an
389389
unnecessary step if ``get_type_hints()`` is used later.
390390

391-
Drop annotations with -O
392-
------------------------
391+
Dropping annotations with -O
392+
----------------------------
393393

394394
There are two reasons this is not satisfying for the purpose of this
395395
PEP.

0 commit comments

Comments
 (0)