@@ -2074,8 +2074,8 @@ async def test_state_proxy(
20742074
20752075 # ensure state update was emitted
20762076 assert mock_app .event_namespace is not None
2077- mock_app .event_namespace .emit .assert_called_once () # pyright: ignore [reportFunctionMemberAccess ]
2078- mcall = mock_app .event_namespace .emit .mock_calls [0 ] # pyright: ignore [reportFunctionMemberAccess ]
2077+ mock_app .event_namespace .emit .assert_called_once () # pyright: ignore [reportAttributeAccessIssue ]
2078+ mcall = mock_app .event_namespace .emit .mock_calls [0 ] # pyright: ignore [reportAttributeAccessIssue ]
20792079 assert mcall .args [0 ] == str (SocketEvent .EVENT )
20802080 assert mcall .args [1 ] == StateUpdate (
20812081 delta = {
@@ -2281,7 +2281,7 @@ async def test_background_task_no_block(mock_app: rx.App, token: str):
22812281 assert mock_app .event_namespace is not None
22822282 emit_mock = mock_app .event_namespace .emit
22832283
2284- first_ws_message = emit_mock .mock_calls [0 ].args [1 ] # pyright: ignore [reportFunctionMemberAccess ]
2284+ first_ws_message = emit_mock .mock_calls [0 ].args [1 ] # pyright: ignore [reportAttributeAccessIssue ]
22852285 assert (
22862286 first_ws_message .delta [BackgroundTaskState .get_full_name ()].pop (
22872287 "router" + FIELD_MARKER
@@ -2298,7 +2298,7 @@ async def test_background_task_no_block(mock_app: rx.App, token: str):
22982298 events = [],
22992299 final = True ,
23002300 )
2301- for call in emit_mock .mock_calls [1 :5 ]: # pyright: ignore [reportFunctionMemberAccess ]
2301+ for call in emit_mock .mock_calls [1 :5 ]: # pyright: ignore [reportAttributeAccessIssue ]
23022302 assert call .args [1 ] == StateUpdate (
23032303 delta = {
23042304 BackgroundTaskState .get_full_name (): {
@@ -2308,7 +2308,7 @@ async def test_background_task_no_block(mock_app: rx.App, token: str):
23082308 events = [],
23092309 final = True ,
23102310 )
2311- assert emit_mock .mock_calls [- 2 ].args [1 ] == StateUpdate ( # pyright: ignore [reportFunctionMemberAccess ]
2311+ assert emit_mock .mock_calls [- 2 ].args [1 ] == StateUpdate ( # pyright: ignore [reportAttributeAccessIssue ]
23122312 delta = {
23132313 BackgroundTaskState .get_full_name (): {
23142314 "order" + FIELD_MARKER : exp_order ,
@@ -2319,7 +2319,7 @@ async def test_background_task_no_block(mock_app: rx.App, token: str):
23192319 events = [],
23202320 final = True ,
23212321 )
2322- assert emit_mock .mock_calls [- 1 ].args [1 ] == StateUpdate ( # pyright: ignore [reportFunctionMemberAccess ]
2322+ assert emit_mock .mock_calls [- 1 ].args [1 ] == StateUpdate ( # pyright: ignore [reportAttributeAccessIssue ]
23232323 delta = {
23242324 BackgroundTaskState .get_full_name (): {
23252325 "computed_order" + FIELD_MARKER : exp_order ,
0 commit comments