(self, count: int, minutes: int)
| 67 | |
| 68 | class IPRateLimit: |
| 69 | def __init__(self, count: int, minutes: int): |
| 70 | self.ips: Dict[str, Dict[str, Union[int, datetime]]] = {} |
| 71 | self.count = count |
| 72 | self.minutes = minutes |
| 73 | |
| 74 | def check_ip(self, ip: str) -> bool: |
| 75 | if ip in self.ips: |
nothing calls this directly
no outgoing calls
no test coverage detected