mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

- Closes #976 - Added helper to apply arbitrary colour to an icon. - Fix #979 - low res icons in night mode. - The icons and colours are not perfect - please feel free to send through a PR if you can improve them. - Convert colors dictionary into module consts, so we can use code completion. - Added "Edited Today" and "Due Tomorrow" - Rename camelCase attribute to snake_case and tweak the wording of some enum constants. We've already broken compatibility with the major sidebar add-ons, so we may as well make these changes while we can. - Removed Filter button. Currently there is no exposed way to toggle the Sidebar off - wonder if we still need it?
6 lines
234 B
Python
6 lines
234 B
Python
from typing import NoReturn
|
|
|
|
|
|
def assert_exhaustive(arg: NoReturn) -> NoReturn:
|
|
"""The type definition will cause mypy to tell us if we've missed an enum case."""
|
|
raise Exception(f"unexpected arg received: {type(arg)} {arg}")
|