From 9ea458d177e7d5b19d0d4918ad00d3275f51bd5b Mon Sep 17 00:00:00 2001 From: alimcmaster1 Date: Sat, 18 Apr 2020 02:34:24 +0100 Subject: [PATCH] Cln cython warnings --- pandas/_libs/internals.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index d3d8bead88d08..1e53b789aa05c 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -141,10 +141,10 @@ cdef class BlockPlacement: return BlockPlacement(val) - def delete(self, loc) -> "BlockPlacement": + def delete(self, loc) -> BlockPlacement: return BlockPlacement(np.delete(self.as_array, loc, axis=0)) - def append(self, others) -> "BlockPlacement": + def append(self, others) -> BlockPlacement: if not len(others): return self @@ -185,7 +185,7 @@ cdef class BlockPlacement: val = newarr return BlockPlacement(val) - def add(self, other) -> "BlockPlacement": + def add(self, other) -> BlockPlacement: # We can get here with int or ndarray return self.iadd(other)