@@ -104,7 +104,11 @@ async def __call__(
104
104
auth : undefined .UndefinedNoneOr [str ] = undefined .UNDEFINED ,
105
105
) -> typing .Union [None , data_binding .JSONObject , data_binding .JSONArray ]: ...
106
106
107
- class _ThreadDeserializeSig (typing .Protocol ["_GuildThreadChannelCovT" ]):
107
+ _GuildThreadChannelCovT = typing .TypeVar (
108
+ "_GuildThreadChannelCovT" , bound = channels .GuildThreadChannel , covariant = True
109
+ )
110
+
111
+ class _ThreadDeserializeSig (typing .Protocol [_GuildThreadChannelCovT ]):
108
112
def __call__ (
109
113
self ,
110
114
payload : data_binding .JSONObject ,
@@ -118,7 +122,6 @@ def __call__(
118
122
119
123
_ParentT = typing .TypeVar ("_ParentT" )
120
124
_GuildThreadChannelT = typing .TypeVar ("_GuildThreadChannelT" , bound = channels .GuildThreadChannel )
121
- _GuildThreadChannelCovT = typing .TypeVar ("_GuildThreadChannelCovT" , bound = channels .GuildThreadChannel , covariant = True )
122
125
123
126
124
127
@typing .final
@@ -830,7 +833,7 @@ class GuildThreadIterator(iterators.BufferedLazyIterator[_GuildThreadChannelT]):
830
833
831
834
def __init__ (
832
835
self ,
833
- deserialize : _ThreadDeserializeSig [_GuildThreadChannelCovT ],
836
+ deserialize : _ThreadDeserializeSig [_GuildThreadChannelT ],
834
837
entity_factory : entity_factory_ .EntityFactory ,
835
838
request_call : _RequestCallSig ,
836
839
route : routes .CompiledRoute ,
@@ -846,7 +849,7 @@ def __init__(
846
849
self ._request_call = request_call
847
850
self ._route = route
848
851
849
- async def _next_chunk (self ) -> typing .Optional [typing .Generator [_GuildThreadChannelCovT , typing .Any , None ]]:
852
+ async def _next_chunk (self ) -> typing .Optional [typing .Generator [_GuildThreadChannelT , typing .Any , None ]]:
850
853
if not self ._has_more :
851
854
return None
852
855
0 commit comments