forked from p15670423/monkey
UT: Add missing type hint to event_queue_subscriber fixture
This commit is contained in:
parent
f510b89c08
commit
f9f3daffa7
|
@ -1,6 +1,6 @@
|
|||
from dataclasses import dataclass
|
||||
from ipaddress import IPv4Address
|
||||
from typing import FrozenSet, Union
|
||||
from typing import Callable, FrozenSet, Union
|
||||
from uuid import UUID
|
||||
|
||||
import pytest
|
||||
|
@ -37,7 +37,7 @@ def event_queue() -> IEventQueue:
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def event_queue_subscriber():
|
||||
def event_queue_subscriber() -> Callable[[AbstractEvent], None]:
|
||||
def fn(event: AbstractEvent):
|
||||
fn.call_count += 1
|
||||
fn.call_types.add(event.__class__)
|
||||
|
|
Loading…
Reference in New Issue