Summary
Renaming a named tuple field misses the keyword arguments in constructor calls:
from typing import NamedTuple
class Point(NamedTuple):
x: int
y: int
point = Point(x=1, y=2)
print(point.x)
ty correctly renames the use of x in print(point.x) but it fails to rename the keyword argument in Point(x=1, ...).
Playground
Related to #3348
Version
No response
Summary
Renaming a named tuple field misses the keyword arguments in constructor calls:
ty correctly renames the use of
xinprint(point.x)but it fails to rename the keyword argument inPoint(x=1, ...).Playground
Related to #3348
Version
No response