Ticket #454 (closed defect: fixed)
@classmethod implementation leaves first argument with incorrect type
| Reported by: | scoder | Owned by: | scoder |
|---|---|---|---|
| Priority: | major | Milestone: | 0.12.1 |
| Component: | Type Analysis | Keywords: | |
| Cc: |
Description
cdef class TypeWithFactory:
@classmethod
def new(type cls):
return cls.__new__(cls)
assigns the type TypeWithFactory to cls, instead of type.
Also, the parameter declaration as type shouldn't be necessary, as Cython should know that it must be a subtype of TypeWithFactory anyway.
Change History
Note: See
TracTickets for help on using
tickets.
