File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 11"""Simulator data model classes."""
22from __future__ import annotations
33
4- import asyncio
54from collections .abc import Awaitable , Callable
65from dataclasses import dataclass
76from enum import Enum
@@ -194,7 +193,7 @@ def __post_init__(self):
194193 raise TypeError ("0 <= address < 65535" )
195194 if not isinstance (self .count , int ) or not 0 < self .count <= 65535 :
196195 raise TypeError ("0 < count <= 65535" )
197- if self .action and not ( callable (self .action ) or asyncio . iscoroutinefunction ( self . action ) ):
196+ if self .action and not callable (self .action ):
198197 raise TypeError ("action not Callable or Awaitable (async)" )
199198 if not isinstance (self .datatype , SimDataType ):
200199 raise TypeError ("datatype not SimDataType" )
You can’t perform that action at this time.
0 commit comments