Skip to content

Commit b4f65ed

Browse files
committed
Fix latest mypy issues
1 parent 37d7ca1 commit b4f65ed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/sql_tstring/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,13 @@ def _replace_placeholder(
289289
for position, part in enumerate(node.parent.parent.parts):
290290
if part is node.parent:
291291
value = ""
292-
for bit in part.parts: # type: ignore[union-attr]
292+
for bit in part.parts:
293293
if isinstance(bit, Placeholder):
294294
value += str(bit.value)
295295
else:
296-
value += bit.text # type: ignore[union-attr]
296+
value += bit.text
297297
node.parent.parent.parts[position] = Placeholder(
298-
parent=part.parent, value=value # type: ignore[arg-type]
298+
parent=part.parent, value=value
299299
)
300300
result.append(value)
301301
else:
@@ -339,7 +339,7 @@ def _replace_placeholder(
339339
new_node = Part(text="NULL", parent=node.parent)
340340
else:
341341
new_node = node
342-
result.append(value)
342+
result.append(value) # type: ignore[arg-type]
343343

344344
if isinstance(node.parent, (Expression, ExpressionGroup, Function, Group)):
345345
node.parent.parts[index] = new_node

0 commit comments

Comments
 (0)