File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 2626CB = TypeVar ("CB" , AsyncCallback , SyncCallback )
2727
2828
29- class MentionHandlerBase (Protocol ):
30- _mention_pattern : str | re .Pattern [str ] | None
31- _mention_scope : MentionScope | None
32- _mention_username : str | re .Pattern [str ] | None
33-
34-
35- class AsyncMentionHandler (MentionHandlerBase , Protocol ):
29+ class AsyncMentionHandler (Protocol ):
3630 async def __call__ (
3731 self , event : sansio .Event , * args : Any , ** kwargs : Any
3832 ) -> None : ...
3933
4034
41- class SyncMentionHandler (MentionHandlerBase , Protocol ):
35+ class SyncMentionHandler (Protocol ):
4236 def __call__ (self , event : sansio .Event , * args : Any , ** kwargs : Any ) -> None : ...
4337
4438
@@ -103,10 +97,6 @@ def sync_wrapper(
10397 else :
10498 wrapper = cast (SyncMentionHandler , sync_wrapper )
10599
106- wrapper ._mention_pattern = pattern
107- wrapper ._mention_scope = scope
108- wrapper ._mention_username = username
109-
110100 events = scope .get_events () if scope else MentionScope .all_events ()
111101 for event_action in events :
112102 self .add (
You can’t perform that action at this time.
0 commit comments