Detect invalid attribute assignment for NamedTuple
#1976
Labels
enhancement
New feature or request
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
This will result in
AttributeError: can't set attribute
during runtime. I think it would be nice if pylance / pyright could detect it.This already happens for
__setitem__
calls (although this would raise aTypeError
).The text was updated successfully, but these errors were encountered: