Skip to content

Commit

Permalink
23.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Nov 23, 2023
1 parent 9386ddd commit 0f41eb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/HABApp/core/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from asyncio import Task as _Task
from asyncio import run_coroutine_threadsafe as _run_coroutine_threadsafe
from contextvars import ContextVar as _ContextVar
from contextvars import Token
from contextvars import Token as _Token
from typing import Any as _Any
from typing import Callable, Final
from typing import Callable as _Callable
Expand All @@ -27,7 +27,7 @@
class AsyncContext:
def __init__(self, value: str):
self.value: Final = value
self.token: Token[str] | None = None
self.token: _Token[str] | None = None
self.parent: AsyncContext | None = None

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rule/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def rule(monkeypatch):

@pytest.mark.no_internals
async def test_run_func_arg_errors(rule):
with pytest.raises(ValueError) as e:
with pytest.raises(TypeError) as e:
rule.execute_subprocess(rule.cb, sys.executable, "asfd", 123)
assert str(e.value) == 'args[2] is not of type str! "123" (int)'

Expand Down

0 comments on commit 0f41eb1

Please sign in to comment.