You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for passing io.TextIOBase-d files as fp param to disnake.File.
What is the feature request for?
The core library
The Problem
At runtime aiohttp seems to handle io.TextIOBase files, so the support is sort of there.
However the parameter isn't typed as accepting them, resulting in the linter complaining.
The Ideal Solution
Allow passing io.TextIOBase directly as the fp param.
The Current Solution
# type: ignore when passing the "incompatible" type.
The text was updated successfully, but these errors were encountered:
Summary
Add support for passing
io.TextIOBase
-d files asfp
param todisnake.File
.What is the feature request for?
The core library
The Problem
At runtime
aiohttp
seems to handleio.TextIOBase
files, so the support is sort of there.However the parameter isn't typed as accepting them, resulting in the linter complaining.
The Ideal Solution
Allow passing
io.TextIOBase
directly as thefp
param.The Current Solution
# type: ignore
when passing the "incompatible" type.The text was updated successfully, but these errors were encountered: