Skip to content

Commit 06a3866

Browse files
📝 Fixed docstring not being in the correct format.
1 parent f7a7f4f commit 06a3866

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

mypy/messages.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -1655,13 +1655,12 @@ def typeddict_key_must_be_string_literal(self, typ: TypedDictType, context: Cont
16551655
def typeddict_key_not_found(
16561656
self, typ: TypedDictType, item_name: str, context: Context, setitem: bool = False
16571657
) -> None:
1658-
"""
1659-
Handles error messages.
1658+
"""Handles error messages for TypedDicts that have unknown keys.
16601659
1661-
Note, that we differentiate in between reading a value and setting
1662-
a value.
1663-
Setting a value on a TypedDict is an 'unknown-key' error,
1664-
whereas reading it is the more serious/general 'item' error.
1660+
Note, that we differentiate in between reading a value and setting a
1661+
value.
1662+
Setting a value on a TypedDict is an 'unknown-key' error, whereas
1663+
reading it is the more serious/general 'item' error.
16651664
"""
16661665
if typ.is_anonymous():
16671666
self.fail(

0 commit comments

Comments
 (0)