Commit Graph

18 Commits

Author SHA1 Message Date
larryhastings a111ec493b
PEP 649: Improve description of semantics and mark as accepted (#3138)
* Improve PEP 649's description of its semantics.

* Stipulate that name resolution for annotations
  under 649 must be *identical* to stock semantics.
* *Don't* specify exactly the mechanism that conformant
  implementations must use to implement 649.  Instead,
  *do* describe how CPython might do it, but leave the
  actual details of how to implement 649 up to each
  language implementation.
* Incorporate Jelle's suggestion that the formats for
  inspect.get_annotations() be in an enum.IntEnum.

* Fix lint.

* PEP 693: Postpone 3.12.0b1 by two weeks (#3139)

* PEP 695: Lazy evaluation, concrete scoping semantics, other changes (#3122)

- Lazy evaluation means that referencing a later type variable works at runtime
- Disallow walrus in TypeVar bounds, and also disallow yield/yield from/await
  in the same contexts
- Remove rejection of lambda lifting; that is the implementation we are using now
- Change the AST
- Change of direction on mangling
- More precise scoping rules

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>

* Incorporate changes from feedback, mark Accepted.

* Fix PEP 12 header *order compliance*.  Wow.

* Fix Sphinx complaints.

* Make enum consistent, flesh out observed semantics.

* Add "Resolution" header, as pointed out by Hugo.

* Switch to other URL for Resolution header.

* Apply ``global_enum`` to ``inspect.AnnotationFormat``

* Final? text / semantics cleanup pass.

* "accept" -> "accepts".  Bettering my Englishes.

* Add new "post history" reflecting the updates.

* Update post history with all conversations, courtesy CAM!

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>

* Fix typo.  Thanks, Emily!

Co-authored-by: Emily Morehouse <emilyemorehouse@gmail.com>

* Add "Discussions-To" header.  Thanks, CAM!

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>

* Attempt to satisfy "validate-post-history" hook.

---------

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Emily Morehouse <emilyemorehouse@gmail.com>
2023-05-15 21:07:22 -07:00
Adam Turner 63a594ff38
PEP 649: Fix literal block syntax (#3125) 2023-04-26 00:14:44 +01:00
larryhastings b49ab691d8
Fixes to PEP 649 based on feedback. (#3124)
* Move the "Mistaken rejection" section up to Overview.
* Stipulate that the exact value of strings returned by SOURCE
  format may change in the future.
* Disallow walrus and generator operators in annotation expressions.
2023-04-25 15:14:54 -07:00
Carl Meyer 8c61071df1
PEP 649: distinguish annotations requested as strings vs objects (#3118) 2023-04-22 22:51:09 -07:00
Carl Meyer 076f44117a
PEP 649: typo fixes and minor clarifications (#3113)
* PEP 649: typo fixes and minor clarifications

* review comments
2023-04-22 22:50:38 -07:00
Hugo van Kemenade aea1fd51ef
PEP 649: fix and improve formatting
* PEP 649: fix backticks

* PEP 649: fix typos

* PEP 649: update formatting

* PEP 649: update formatting

* PEP 649: remove redundant emacs metadata

* PEP 649: use more roles
2023-04-19 13:33:23 -07:00
larryhastings f223b5bd71
Update PEP 649 with a major revision. (#3106)
Update PEP 649 with a major revision.
2023-04-19 11:35:03 -07:00
Peter Law a3310aeeff
PEP 649: Fix nested list formatting (#2856) 2022-10-29 16:01:10 +03:00
Jelle Zijlstra 83b976da18
Add Typing Topic (#2670)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-06 17:36:39 -07:00
Adam Turner 113e490701
Several PEPs: Use explicit `:pep:` and `:rfc:` roles (#2209) 2022-01-21 11:03:51 +00:00
Dimitri Papadopoulos Orfanos 1c8c3aff59
PEP 649: repeated words (#2149) 2021-11-15 07:17:41 -08:00
Christopher H.Barker, PhD 5f7d16f7df
[pep-649] Clean up formatting (GH-2048)
One code-block was added, and fixed a couple of places where URLs were formatted as quotations.
2021-09-17 03:06:16 +02:00
Larry Hastings fdf2e08d7d Hopefully fix rendering errors for PEP 649. 2021-04-12 17:56:43 -07:00
Larry Hastings c11c646746 Updated PEP 649 to v2. 2021-04-12 06:27:13 -07:00
Marti Raudsepp 9b64c6ea75
Various typo/grammar/style fixes (#1789)
Changes detected by Topy (https://github.com/intgr/topy), all changes
verified by hand, false positives have been omitted.

These range from straight-out misspellings to debatable hyphen placement.
The hyphen changes are supported by grammar manuals of style.
2021-02-03 06:06:23 -08:00
Larry Hastings 9a4b7c6071 Clarify 649 wrt annotations inside flow control. 2021-01-11 16:14:32 -08:00
Larry Hastings 33b7bdcf94 Minor formatting touch-ups for PEP 649. 2021-01-11 12:23:40 -08:00
Larry Hastings 3227c9aa8f Added PEP 649, Deferred Evaluation Of Annotations...
...zzzz.
2021-01-11 10:25:13 -08:00