Skip to content

Commit 5c6bbbd

Browse files
committed
Ignore a mypy error
Likely due to the generic bound, not sure why though.
1 parent 1b6af83 commit 5c6bbbd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sql_tstring/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def _parse_operator[T: ParentNode](
513513
if isinstance(current_node, (Expression, Function, Group)):
514514
parent = current_node
515515
else: # Clause | ExpressionGroup
516-
parent = current_node.expressions[-1]
516+
parent = current_node.expressions[-1] # type: ignore[assignment]
517517
parent.parts.append(Operator(parent=parent, text=text))
518518
return current_node, index
519519

@@ -568,7 +568,7 @@ def _parse_part[T: ParentNode](
568568
if isinstance(current_node, (Expression, Function, Group)):
569569
parent = current_node
570570
else: # Clause | ExpressionGroup
571-
parent = current_node.expressions[-1]
571+
parent = current_node.expressions[-1] # type: ignore[assignment]
572572
parent.parts.append(Part(parent=parent, text=text))
573573
return current_node, 1
574574

0 commit comments

Comments
 (0)