From 0e2758613a07a1f9bf9497a5a6a1a4bb2e48a9ca Mon Sep 17 00:00:00 2001 From: ftnext Date: Sat, 12 Oct 2024 16:26:02 +0900 Subject: [PATCH] [feat] Refine error messages --- src/kotoha/core.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/kotoha/core.py b/src/kotoha/core.py index 261e0cd..ffc64fd 100644 --- a/src/kotoha/core.py +++ b/src/kotoha/core.py @@ -2,25 +2,25 @@ KTH101 = ( "KTH101 " - "Use abstract type hint by `collections.abc.Iterable` or " - "`collections.abc.Sequence` " - "instead of concrete type hint `list`" + "Type hint with abstract type `collections.abc.Iterable` or " + "`collections.abc.Sequence`, " + "instead of concrete type `list`" ) KTH102 = ( "KTH102 " - "Use abstract type hint by `collections.abc.Iterable` or " - "`collections.abc.Sequence` " - "instead of concrete type hint `tuple`" + "Type hint with abstract type `collections.abc.Iterable` or " + "`collections.abc.Sequence`, " + "instead of concrete type `tuple`" ) KTH103 = ( "KTH103 " - "Use abstract type hint by `collections.abc.Iterable` " - "instead of concrete type hint `set`" + "Type hint with abstract type `collections.abc.Iterable`" + "instead of concrete type `set`" ) KTH104 = ( "KTH104 " - "Use abstract type hint by `collections.abc.Iterable` " - "instead of concrete type hint `dict`" + "Type hint with abstract type `collections.abc.Iterable`" + "instead of concrete type `dict`" ) LineNumber = int