File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,9 @@ async def run_internal_event(
258258 ) -> None :
259259 kwargs ["source" ] = SyncStream .INTERNAL
260260 tasks = self .dispatch_manual_event (
261- event_type , custom_type or kwargs , include_global_handlers = False
261+ event_type ,
262+ custom_type if custom_type is not None else kwargs ,
263+ include_global_handlers = False ,
262264 )
263265 await asyncio .gather (* tasks )
264266
@@ -267,7 +269,9 @@ def dispatch_internal_event(
267269 ) -> list [asyncio .Task ]:
268270 kwargs ["source" ] = SyncStream .INTERNAL
269271 return self .dispatch_manual_event (
270- event_type , custom_type or kwargs , include_global_handlers = False
272+ event_type ,
273+ custom_type if custom_type is not None else kwargs ,
274+ include_global_handlers = False ,
271275 )
272276
273277 def _try_deserialize (self , type : Type [T ], data : JSON ) -> T | GenericEvent :
You can’t perform that action at this time.
0 commit comments