Change type hint of magic method.

pull/493/head
KmolYuan 2019-10-10 15:44:59 +08:00
parent 8952591dbd
commit 2da3e6bf80
1 changed files with 1 additions and 2 deletions

View File

@ -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 (