Mr-Robot-Discord-Bot / Mr-Robot

Multi-Purpose powerfull Discord Bot
https://discord.com/oauth2/authorize?client_id=1239962447285063691
GNU General Public License v3.0
3 stars 2 forks source link

Type ignore specification #9

Closed OseSem closed 3 months ago

OseSem commented 3 months ago

When using type: ignore you do not specify which type error to ignore. This is bad habit as when you are reviewing your code you cannot see what the error was. You can specify to ignore a specific type by using type: ignore[errorname] so for example type: ignore[ReportAttributeAccessIssue].