Skip to content

Commit 874a28f

Browse files
authored
Fix __set__ to __get__ in messages (#13913)
We're dealing with the get descriptor here but calling it `__set__`, probably a copy-paste from similar code elsewhere. I think this only affects messages.
1 parent a412738 commit 874a28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checkmember.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def analyze_descriptor_access(descriptor_type: Type, mx: MemberContext) -> Type:
627627
itype=descriptor_type,
628628
info=descriptor_type.type,
629629
self_type=descriptor_type,
630-
name="__set__",
630+
name="__get__",
631631
mx=mx,
632632
)
633633

0 commit comments

Comments
 (0)