Skip to content

Commit

Permalink
Fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrattli committed Sep 28, 2024
1 parent 268245c commit 6b5d42f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tests/test_eventloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def test_sleep():

@pytest.mark.asyncio(loop_scope="module")
async def test_call_soon():
result = []
result: list[int] = []

def action(value: int) -> None:
result.append(value)
Expand All @@ -41,7 +41,7 @@ def action(value: int) -> None:

@pytest.mark.asyncio(loop_scope="module")
async def test_call_later():
result = []
result: list[int] = []

def action(value: int) -> None:
result.append(value)
Expand All @@ -56,7 +56,7 @@ def action(value: int) -> None:

@pytest.mark.asyncio(loop_scope="module")
async def test_call_at():
result = []
result: list[int] = []

def action(value: int) -> None:
result.append(value)
Expand All @@ -71,7 +71,7 @@ def action(value: int) -> None:

@pytest.mark.asyncio(loop_scope="module")
async def test_cancel():
result = []
result: list[int] = []

def action(value: int) -> None:
result.append(value)
Expand Down
5 changes: 2 additions & 3 deletions tests/test_filter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import asyncio
from typing import Any, Generator

import pytest
from expression.core import pipe
Expand All @@ -24,7 +23,7 @@ def event_loop_policy():
@pytest.mark.asyncio(loop_scope="module")
async def test_filter_happy() -> None:
xs = rx.from_iterable([1, 2, 3])
result = []
result: list[int] = []

async def asend(value: int) -> None:
result.append(value)
Expand All @@ -43,7 +42,7 @@ async def predicate(value: int) -> bool:
async def test_filter_predicate_throws() -> None:
xs = rx.from_iterable([1, 2, 3])
err = MyException("err")
result = []
result: list[int] = []

async def asend(value: int) -> None:
result.append(value)
Expand Down

0 comments on commit 6b5d42f

Please sign in to comment.