File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sqlspec/extensions/events Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55import inspect
66import threading
77import uuid
8- from collections .abc import AsyncIterator , Iterator
8+ from collections .abc import AsyncIterator , Awaitable , Iterator
99from dataclasses import dataclass
10- from typing import TYPE_CHECKING , Any
10+ from typing import TYPE_CHECKING , Any , cast
1111
1212from sqlspec .exceptions import ImproperConfigurationError , MissingDependencyError
1313from sqlspec .extensions .events ._hints import get_runtime_hints
@@ -626,7 +626,7 @@ async def shutdown_async(self) -> None:
626626 if backend_shutdown is not None and callable (backend_shutdown ):
627627 result = backend_shutdown ()
628628 if result is not None :
629- await result
629+ await cast ( "Awaitable[None]" , result )
630630 except Exception as error :
631631 self ._end_event_span (span , error = error )
632632 raise
You can’t perform that action at this time.
0 commit comments