From 08dfd9a6cb88ac61faad3efc05ff32a3fb5b9ea4 Mon Sep 17 00:00:00 2001 From: WieeRd <verywieerd@gmail.com> Date: Tue, 6 Feb 2024 03:51:39 +0900 Subject: [PATCH] chore: use `NotImplementedError` instead of `...` Also I should probably lock Ruff with dev dependency rather than always installing the latest version in the CI. --- ricecake/hangul/compose.py | 4 ++-- ricecake/hangul/convert.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ricecake/hangul/compose.py b/ricecake/hangul/compose.py index 4e6a9a3..bb92b4e 100644 --- a/ricecake/hangul/compose.py +++ b/ricecake/hangul/compose.py @@ -3,12 +3,12 @@ def compose(cho: str, jung: str, jong: str | None) -> str: """Composes Choseong, Jungseong, and Jongseong into a Syllable.""" - ... + raise NotImplementedError def decompose(syl: str) -> tuple[str, str, str | None]: """Decomposes a Syllable into Choseong, Jungseong, and Jongseong.""" - ... + raise NotImplementedError # FEAT: decompose composite Jaum and Moum into tuple of str diff --git a/ricecake/hangul/convert.py b/ricecake/hangul/convert.py index 02c22cd..3485f90 100644 --- a/ricecake/hangul/convert.py +++ b/ricecake/hangul/convert.py @@ -3,19 +3,19 @@ def jamo_to_compat_jamo(c: str, /) -> str | None: """Maps a Jamo character to a Compatibility Jamo character.""" - ... + raise NotImplementedError def compat_jaum_to_choseong(c: str, /) -> str | None: """Maps a Compatibility Jaum character to a Jamo Choseong character.""" - ... + raise NotImplementedError def compat_moum_to_jungseong(c: str, /) -> str: """Maps a Compatibility Moum character to a Jamo Jungseong character.""" - ... + raise NotImplementedError def compat_jaum_to_jongseong(c: str, /) -> str: """Maps a Compatibility Jaum character to a Jamo Jongseong character.""" - ... + raise NotImplementedError