PEP 634: Fix error typo in mapping patterns (TypeError ->ValueError) (GH-1839)

This commit is contained in:
Ken Jin 2021-02-24 15:15:36 +08:00 committed by GitHub
parent 13be7c414f
commit bff63f80cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ and it must be last.
A mapping pattern may not contain duplicate key values.
(If all key patterns are literal patterns this is considered a
syntax error; otherwise this is a runtime error and will
raise ``TypeError``.)
raise ``ValueError``.)
A mapping pattern fails if the subject value is not an instance of
``collections.abc.Mapping``.