mirror of
https://github.com/davidhalter/parso.git
synced 2026-05-22 08:20:36 +08:00
English.
This commit is contained in:
@@ -633,8 +633,8 @@ class ErrorFinder(Normalizer):
|
|||||||
if comp_for is not None and comp_for.type == 'comp_for':
|
if comp_for is not None and comp_for.type == 'comp_for':
|
||||||
# {**{} for a in [1]}
|
# {**{} for a in [1]}
|
||||||
message = "dict unpacking cannot be used in dict comprehension"
|
message = "dict unpacking cannot be used in dict comprehension"
|
||||||
# TODO probably this should get a better end_pos including
|
# TODO this should probably get a better end_pos including
|
||||||
# the next sibling of leaf.
|
# the next sibling of leaf.
|
||||||
self._add_syntax_error(message, leaf)
|
self._add_syntax_error(message, leaf)
|
||||||
|
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user