summaryrefslogtreecommitdiff
path: root/qutebrowser/browser/hints.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-10-26 15:42:10 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-10-26 15:50:54 +0100
commit46302e488f27a93f8cbe36de335a17ac96100f20 (patch)
tree344e6e9731b7168d16f56b377351683f48a3d23a /qutebrowser/browser/hints.py
parent685a66280aff600a83aa30da814aea63f0116c31 (diff)
downloadqutebrowser-46302e488f27a93f8cbe36de335a17ac96100f20.tar.gz
qutebrowser-46302e488f27a93f8cbe36de335a17ac96100f20.zip
Use enum.auto() for most enum values
Doesn't change values where they are chosen to line up with Qt enums. See #4800
Diffstat (limited to 'qutebrowser/browser/hints.py')
-rw-r--r--qutebrowser/browser/hints.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py
index c122894b3..b9dc6cbe6 100644
--- a/qutebrowser/browser/hints.py
+++ b/qutebrowser/browser/hints.py
@@ -46,22 +46,22 @@ class Target(enum.Enum):
"""What action to take on a hint."""
- normal = 1
- current = 2
- tab = 3
- tab_fg = 4
- tab_bg = 5
- window = 6
- yank = 7
- yank_primary = 8
- run = 9
- fill = 10
- hover = 11
- download = 12
- userscript = 13
- spawn = 14
- delete = 15
- right_click = 16
+ normal = enum.auto()
+ current = enum.auto()
+ tab = enum.auto()
+ tab_fg = enum.auto()
+ tab_bg = enum.auto()
+ window = enum.auto()
+ yank = enum.auto()
+ yank_primary = enum.auto()
+ run = enum.auto()
+ fill = enum.auto()
+ hover = enum.auto()
+ download = enum.auto()
+ userscript = enum.auto()
+ spawn = enum.auto()
+ delete = enum.auto()
+ right_click = enum.auto()
class HintingError(Exception):