pyrefly
pyrefly copied to clipboard
[feature] InitVars should not count as dataclass fields
Describe the Bug
Followup from https://github.com/facebook/pyrefly/issues/390
We should make sure that the dataclass doesn't actually have any InitVars as members, and it's only used for generating the init/post_init signature
https://docs.python.org/3/library/dataclasses.html#dataclasses-init-only-variables
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
I can handle this issue too, if nobody else has started on it
@Adist319 sounds good, thanks!
Closed earlier PR(#436) due to some local files mistakenly committed. This PR (#437) is a clean version addressing the same issue.