6 Commits

Author SHA1 Message Date
Mikhail Golubev
b9d7fee816 PY-64304 EA-247016 Don't report illegal "await" expressions used as assignment targets during parsing
Instead, parse them as usual and later report in the dedicated AssignTargetAnnotator
and TypeAnnotationTargetAnnotator. This way, a PsiError element appearing in the PSI
tree of a type declaration statement doesn't cause PyAstTypeDeclarationStatement.getTarget
nullability contract violation.

GitOrigin-RevId: a3e90088cfac7938c398d4d293a72dbd127a2cd0
2024-04-24 09:03:53 +00:00
Mikhail Golubev
63be8f70f2 i18n: Extract messages from and annotate remaining Python annotators
* FStringAnnotator
* Pep8ExternalAnnotator
* AssignTargetAnnotator

GitOrigin-RevId: 73b2feabd42c7061b4dad22e5d7f7a31ad3f338d
2020-08-25 08:47:08 +00:00
Andrey Lisin
62f6e4a07e Fix test broken by change in message capitalization
GitOrigin-RevId: 48f81146490e925712005aa91064e56670abfbda
2020-08-21 09:43:50 +00:00
Semyon Proshev
0a3c7682e9 Allow assign to () and [] (PY-27041) 2017-12-11 15:14:00 +03:00
Dmitry Jemerov
cb59df9887 validate 'assignment to keyword' in Python 3 (PY-1524) 2010-08-17 21:35:43 +04:00
Dmitry Jemerov
9a5169c43e highlight use of starred argument outside of list or tuple (PY-1474) 2010-07-29 19:49:57 +04:00