Total Complexity | 1 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from __future__ import annotations |
||
2 | |||
3 | import requests |
||
4 | from typing import TYPE_CHECKING |
||
5 | |||
6 | if TYPE_CHECKING: |
||
7 | from pincer_bot.bot import Bot |
||
8 | |||
9 | API_LINK: str = "https://api.pepy.tech/api/projects/Pincer" |
||
10 | |||
11 | |||
12 | async def get_pypi_stats(self: Bot): |
||
13 | response = requests.get(API_LINK) |
||
14 | self.pypi.update(response.json()) |
||
15 |