Menu

#1422 Cython: bogus "duplicated signature" warnings

open
nobody
None
5
2011-11-12
2011-11-12
No

For the attached example, PyDev 2.2.4 produces bogus "duplicated signature" warnings for all definitions in read_integer().

Discussion

  • Nikolaus Rath

    Nikolaus Rath - 2011-11-12
     
  • Alex S.

    Alex S. - 2011-12-15

    I think this is a more general problem for cython in pydev - it seems like cdef isn't interpreted correctly. I get duplicated signatures for all of my __init__ functions for example.

    Related #2494579

     
  • Alex S.

    Alex S. - 2011-12-15

    Let me rephrase that: it seems like pydev fails to identify local contexts in cdef defined classes and functions

     
  • Alex S.

    Alex S. - 2011-12-15

    Confer this for example, also produces the duplicated signature errors.

    cdef class a:
    def __init__(self):
    return None

    cdef class b:
    def __init__(self): # <-- Duplicated signature error here
    return None

     
  • Alex S.

    Alex S. - 2011-12-15

    Same for function definitions

    cdef void a:
    cdef int c = 1

    cdef void b:
    cdef int c = 1 # <-- Duplicated signature error here