Skip to content

Commit dc4a7c3

Browse files
vdusekclaude
andcommitted
fix: replace type: ignore with ty: ignore comments
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8291ca6 commit dc4a7c3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/02_concepts/code/04_use_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async def main() -> None:
1414
Actor.log.info(f'Resuming from item {start_index}')
1515

1616
# Do some work and update the state — it is persisted automatically
17-
for i in range(start_index, 100): # type: ignore[arg-type] # ty: ignore[invalid-argument-type]
17+
for i in range(start_index, 100): # ty: ignore[invalid-argument-type]
1818
Actor.log.info(f'Processing item {i}...')
1919
state['processed_items'] = i + 1
2020
await asyncio.sleep(0.1)

tests/unit/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ def test_ipython_detection_when_active() -> None:
1414

1515
original = getattr(builtins, '__IPYTHON__', None)
1616
try:
17-
builtins.__IPYTHON__ = True # type: ignore[attr-defined] # ty: ignore[unresolved-attribute]
17+
builtins.__IPYTHON__ = True # ty: ignore[unresolved-attribute]
1818
assert is_running_in_ipython() is True
1919
finally:
2020
if original is None:
2121
if hasattr(builtins, '__IPYTHON__'):
2222
del builtins.__IPYTHON__
2323
else:
24-
builtins.__IPYTHON__ = original # type: ignore[attr-defined] # ty: ignore[unresolved-attribute]
24+
builtins.__IPYTHON__ = original # ty: ignore[unresolved-attribute]
2525

2626

2727
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)