Merging upstream version 25.20.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d9afe6504e
commit
f9e1084cc5
119 changed files with 78094 additions and 71498 deletions
|
@ -315,7 +315,7 @@ class TypeAnnotator(metaclass=_TypeAnnotator):
|
|||
def _annotate_unary(self, expression: E) -> E:
|
||||
self._annotate_args(expression)
|
||||
|
||||
if isinstance(expression, exp.Condition) and not isinstance(expression, exp.Paren):
|
||||
if isinstance(expression, exp.Not):
|
||||
self._set_type(expression, exp.DataType.Type.BOOLEAN)
|
||||
else:
|
||||
self._set_type(expression, expression.this.type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue