From 2da3e6bf8058badd2be370dcf3e5955327d35ae0 Mon Sep 17 00:00:00 2001 From: KmolYuan Date: Thu, 10 Oct 2019 15:44:59 +0800 Subject: [PATCH] Change type hint of magic method. --- cython/python_solvespace/slvs.pyx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cython/python_solvespace/slvs.pyx b/cython/python_solvespace/slvs.pyx index bbd8a942..fa4cc035 100644 --- a/cython/python_solvespace/slvs.pyx +++ b/cython/python_solvespace/slvs.pyx @@ -9,7 +9,6 @@ license: GPLv3+ email: pyslvs@gmail.com """ -cimport cython from cpython.mem cimport PyMem_Malloc, PyMem_Free from cpython.object cimport Py_EQ, Py_NE from libcpp.pair cimport pair @@ -150,7 +149,7 @@ cdef class Entity: entity.params = Params.create(e.param, p_size) return entity - def __richcmp__(self, other: Entity, op: cython.int) -> bint: + def __richcmp__(self, Entity other, int op) -> bint: """Compare the entities.""" if op == Py_EQ: return (