summaryrefslogtreecommitdiff
path: root/tests/errors/dataclass_w1.pyx
blob: c0d9790e29eea86c8cbbb0de49f3986c31a48e7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# mode: compile
# tag: warnings

from dataclass_w1_othermod cimport SomeBase
from cython.dataclasses cimport dataclass

@dataclass
cdef class DC(SomeBase):
    a: str = ""

_WARNINGS = """
8:5: Cannot reliably handle Cython dataclasses with base types in external modules since it is not possible to tell what fields they have
"""