File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments