Cog-Creators / Cog-Creators/Red-DiscordBot
Deprecation warnings
- Dominant language
- Python
- Stars
- 5.7k
- Forks
- 2.5k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
Deprecation warnings.
- [ ] https://bugs.python.org/issue39015
```
:219: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
```
- [ ] Bug in CPython, no tracking issue
```
C:\Python39\lib\asyncio\subprocess.py:196: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
stdin, stdout, stderr = await tasks.gather(stdin, stdout, stderr,
```
- [x] Fixed by https://github.com/Cog-Creators/Red-DiscordBot/pull/3610.
```
..venv/lib/site-packages/redbot/core/config.py:513: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
self, current: collections.Mapping, defaults: Dict[str, Any] = ...
```
- [x] https://github.com/aio-libs/aiohttp/pull/4570 (awaiting bump to aiohttp 3.7+)
```
..venv/lib/site-packages/aiohttp/connector.py:964: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
hosts = await asyncio.shield(self._resolve_host(
```
- [x] https://github.com/aio-libs/aiohttp/pull/4570 (awaiting bump to aiohttp 3.7+)
```
..venv/lib/site-packages/aiohttp/helpers.py:107: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def noop(*args, **kwargs): # type: ignore
```
- [x] https://github.com/aio-libs/aiohttp/pull/4570 (awaiting bump to aiohttp 3.7+)
```
..venv/lib/site-packages/aiohttp/locks.py:21: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
self._event = asyncio.Event(loop=loop)
```
- [x] Fixed by #3845
```
..venv/lib/site-packages/websockets/client.py:407: DeprecationWarning: rename klass to create_protocol
warnings.warn("rename klass to create_protocol", DeprecationWarning)
```
- [x] https://github.com/MagicStack/uvloop/pull/327 (awaiting uvloop 0.14.1/0.15.0 release)
```
..venv/lib/site-packages/websockets/client.py:535: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
transport, protocol = await self._create_connection()
```
I know most of these are packages we have no control over but some are Red.
Contributor guide
Assessment
This issue has not been assessed yet.