| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
||
| * A dataclass field may be annotated with ``Final[...]``. For example, ``x: | ||
| Final[int]`` in a dataclass body specifies a dataclass field ``x``, which | ||
| * A dataclass field may be annotated with an :term:`explicitly typed Final` |
There was a problem hiding this comment.
We may have to say what "bare Final" does in dataclasses. I discovered ty handles this buggily: astral-sh/ty#4766.
There are two cases:
Sorry, something went wrong.
There was a problem hiding this comment.
Oh yes, I failed to mention that: Bare Finals in dataclasses are a thing, but were not mentioned by the specs. I wanted to keep the status quo in this PR, because it's not about that. I think this should be a separate discussion.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
Co-authored-by: Joren Hammudoglu <jhammudoglu@gmail.com>
| Back | FazBrowse Home | New Git URL |
The main changes:
The rest of the changes use the new terms and link to the new glossary entries.
Closes: #2356