From: Daniele Varrazzo Date: Mon, 16 May 2022 00:58:46 +0000 (+0200) Subject: fix: fix typo: ingeger X-Git-Tag: 3.1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d94d1006cb892174b331f64bc23c1c0990b9aceb;p=thirdparty%2Fpsycopg.git fix: fix typo: ingeger --- diff --git a/psycopg/psycopg/types/numeric.py b/psycopg/psycopg/types/numeric.py index f2d0e7d78..48e096fa6 100644 --- a/psycopg/psycopg/types/numeric.py +++ b/psycopg/psycopg/types/numeric.py @@ -39,7 +39,7 @@ class _IntDumper(Dumper): if issubclass(t, int): obj = int(obj) else: - raise e.DataError(f"ingeger expected, got {type(obj).__name__!r}") + raise e.DataError(f"integer expected, got {type(obj).__name__!r}") return str(obj).encode() diff --git a/psycopg_c/psycopg_c/types/numeric.pyx b/psycopg_c/psycopg_c/types/numeric.pyx index 502168e20..3f6a9082c 100644 --- a/psycopg_c/psycopg_c/types/numeric.pyx +++ b/psycopg_c/psycopg_c/types/numeric.pyx @@ -629,7 +629,7 @@ cdef Py_ssize_t dump_int_to_text(obj, bytearray rv, Py_ssize_t offset) except -1 # Ensure an int or a subclass. The 'is' type check is fast. # Passing a float must give an error, but passing an Enum should work. if type(obj) is not int and not isinstance(obj, int): - raise e.DataError(f"ingeger expected, got {type(obj).__name__!r}") + raise e.DataError(f"integer expected, got {type(obj).__name__!r}") val = PyLong_AsLongLongAndOverflow(obj, &overflow) if not overflow: