chore: apply ty checks on api code with script and ci action (#24653)
This commit is contained in:
parent
c373b734bc
commit
7b379e2a61
48 changed files with 188 additions and 142 deletions
|
|
@ -96,7 +96,11 @@ class RateLimit:
|
|||
if isinstance(generator, Mapping):
|
||||
return generator
|
||||
else:
|
||||
return RateLimitGenerator(rate_limit=self, generator=generator, request_id=request_id)
|
||||
return RateLimitGenerator(
|
||||
rate_limit=self,
|
||||
generator=generator, # ty: ignore [invalid-argument-type]
|
||||
request_id=request_id,
|
||||
)
|
||||
|
||||
|
||||
class RateLimitGenerator:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue