Skip to content

Commit 440ca82

Browse files
committed
Tweak error message: "PEP-764" -> "PEP 764"
1 parent 9ff1cf9 commit 440ca82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mypy/typeanal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,15 +1363,15 @@ def visit_typeddict_type(self, t: TypedDictType) -> Type:
13631363
self.note("Did you mean TypedDict[...]?", t)
13641364
if t.is_pep764 and NEW_INLINE_TYPEDDICT not in self.options.enable_incomplete_feature:
13651365
self.fail(
1366-
"PEP-764 inline TypedDict is experimental,"
1366+
"PEP 764 inline TypedDict is experimental,"
13671367
f" must be enabled with --enable-incomplete-feature={NEW_INLINE_TYPEDDICT}",
13681368
t,
13691369
)
13701370
required_keys = req_keys
13711371
fallback = self.named_type("typing._TypedDict")
13721372
if t.is_pep764 and t.extra_items_from:
13731373
self.fail(
1374-
"PEP-764 inline TypedDict does not support merge-in", t, code=codes.VALID_TYPE
1374+
"PEP 764 inline TypedDict does not support merge-in", t, code=codes.VALID_TYPE
13751375
)
13761376
return AnyType(TypeOfAny.from_error)
13771377
for typ in t.extra_items_from:

test-data/unit/check-typeddict.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3774,7 +3774,7 @@ from typing_extensions import TypeAlias
37743774

37753775
T = TypeVar("T")
37763776
X: TypeAlias = TypedDict[{"item": T}]
3777-
x: TypedDict[{"a": int, **X[str], "b": int}] # E: PEP-764 inline TypedDict does not support merge-in
3777+
x: TypedDict[{"a": int, **X[str], "b": int}] # E: PEP 764 inline TypedDict does not support merge-in
37783778
reveal_type(x) # N: Revealed type is "Any"
37793779
[builtins fixtures/dict.pyi]
37803780
[typing fixtures/typing-full.pyi]

0 commit comments

Comments
 (0)