diff options
author | Wei-Hsiang (Matt) Wang <mattwang44@gmail.com> | 2024-08-30 11:34:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 11:34:09 (GMT) |
commit | 103a0470e31d80d56097f57a27d97d7d2d3c9fbb (patch) | |
tree | 52f32100a42617bf120a8bdb8d3aa193dc35ae8d /Doc/howto/enum.rst | |
parent | 8aaf7525ab839c32966ee862363ad2543a721306 (diff) | |
download | cpython-103a0470e31d80d56097f57a27d97d7d2d3c9fbb.zip cpython-103a0470e31d80d56097f57a27d97d7d2d3c9fbb.tar.gz cpython-103a0470e31d80d56097f57a27d97d7d2d3c9fbb.tar.bz2 |
gh-123492: Remove unnecessary `:func:` parentheses (#123493)
Diffstat (limited to 'Doc/howto/enum.rst')
-rw-r--r-- | Doc/howto/enum.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst index 18e13fc..f406873 100644 --- a/Doc/howto/enum.rst +++ b/Doc/howto/enum.rst @@ -9,7 +9,7 @@ Enum HOWTO .. currentmodule:: enum An :class:`Enum` is a set of symbolic names bound to unique values. They are -similar to global variables, but they offer a more useful :func:`repr()`, +similar to global variables, but they offer a more useful :func:`repr`, grouping, type-safety, and a few other features. They are most useful when you have a variable that can take one of a limited @@ -167,7 +167,7 @@ And a function to display the chores for a given day:: answer SO questions In cases where the actual values of the members do not matter, you can save -yourself some work and use :func:`auto()` for the values:: +yourself some work and use :func:`auto` for the values:: >>> from enum import auto >>> class Weekday(Flag): |