-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
python/mypy
#18447Description
First - mypyc is really cool, thanks for maintaining it!
I've been looking at trying to compile Hypothesis under mypyc. In doing so I ran into the following under mypyc (mypy 1.14.1, python 3.12):
import attr
@attr.s(slots=True)
class A:
ints: list[int] = attr.ib()
print(A(ints=[1]).ints) # AttributeError: attribute 'ints' of 'A' undefined
but dropping slots=True
runs successfully.
I know that mypyc claims only partial support for attrs/dataclasses. I figure I can just drop slots=True
in this case and rely on mypyc's auto-slots instead, but also thought that reporting this would be worthwhile.
Metadata
Metadata
Assignees
Labels
No labels