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
{{ message }}
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
Hello,
due to the actual tornado stub being empty, the reference file when using elements like MotorClient and MotorDatabase is to default to not resolving the import.
MyPy will complain, as the language server.
Substituting it with a basic stub does not enforce correct typing, but does not block the issue
This is generated via stubgen, of course this is not a real stub but at least solves the issue temporarily, until a full stub is implemented
Incomplete is better than an empty file, but might hide the fact that this is not implemented, I'm not sure if this was a deliberate implementation decision.
Yes, leaving it empty instead of marking it as Incomplete is deliberate on my end. As mentioned in 'About' section of the readme, it's something I'm not going to do. It's waiting on someone who's both familiar with (and wants to) use Tornado. I myself am unfamiliar with Tornado (nor do I use it or foresee myself using it in near future), nor could I find anyone who could help me typehint that portion. Eventually things piled up and time to work on the project as opposed to other stuff shrank. Therefore, I deliberately left it empty, hoping that I would either complete it or someone would eventually help me out in completing it. Sorry for the inconvenience caused.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
due to the actual tornado stub being empty, the reference file when using elements like MotorClient and MotorDatabase is to default to not resolving the import.
MyPy will complain, as the language server.
Substituting it with a basic stub does not enforce correct typing, but does not block the issue
This is generated via stubgen, of course this is not a real stub but at least solves the issue temporarily, until a full stub is implemented
Incomplete is better than an empty file, but might hide the fact that this is not implemented, I'm not sure if this was a deliberate implementation decision.
motor_tornado.pyi
The text was updated successfully, but these errors were encountered: