Commit Graph

11 Commits

Author SHA1 Message Date
Pradeep Kumar 2b791d84e0
PEP 675: Add explicit `circumference` method (#2618)
Not adding a `radius` attribute, because the Circle class needs to be
instantiable from just the `scale` config value. So, I'm going with a
method.
2022-05-23 06:26:25 -07:00
Alex Waygood 09a93fb76c
PEP 673: Fix syntax highlighting (#2435) 2022-03-15 15:53:39 -07:00
Peter Law 37351ae82d
PEP 673: Fix a couple of typos (#2419)
* Name this protocol to match usage

It would have been possible here to change the bound of the TypeVar
on line 495 to 'Shape', however I've opted to change the names of
the definitions so that they match the later (similar) definitions
of this protocol.

* Fix example generic class name

I'm guessing this was just a copy/pasta error or similar; there is
no generic class named 'Foo' which is in scope here, however there
is a 'Bar' that has just been defined and isn't yet used.
2022-03-11 17:03:00 -08:00
Adam Turner 42f88f1ce2
Display list names in Resolution and Discussions-To headers (#2361) 2022-02-27 14:46:36 -08:00
Pradeep Kumar 43b77a681a
PEP 673: mark as Accepted; add Resolution link. (#2269) 2022-01-24 21:41:07 -08:00
Adam Turner 113e490701
Several PEPs: Use explicit `:pep:` and `:rfc:` roles (#2209) 2022-01-21 11:03:51 +00:00
Jelle Zijlstra e4a6c82c01
PEP 673: minor fixes to the code samples (#2242)
- Use `...` instead of a unicode ellipsis
- Fix dataclass definition with defaulted before non-defaulted field
2022-01-15 06:09:30 -08:00
Pradeep Kumar 4d55ea96be
PEP 673: Add Post-History. (#2232) 2022-01-12 13:07:51 -08:00
Pradeep Kumar 36ed9512e9
PEP 673: Mention user requests for the feature. (#2231) 2022-01-12 12:28:09 -08:00
Pradeep Kumar 9c60e96f0f
PEP 673: forbid Self in type aliases. (#2194)
Thanks to Eric Traut who tested all the code examples in Pyright and
raised implementation concerns about ``Self`` type in aliases.

I ran into implementation issues in Pyre too. This is because Pyre
preprocesses things like ``Self`` in an early phase and does alias
resolution in a later phase. Mixing the two would lead to a lot of
hacks.
2021-12-16 06:41:11 -08:00
Pradeep Kumar 6df0c1d962
PEP 673: Initial commit for Self Types. (#2139) 2021-11-11 07:02:58 -08:00