简体   繁体   中英

Why am I getting unexpected indent error on an empty line?

This is a cog file for a discord.py rewrite based bot. As you can see, it is completely empty except for the class and the setup, but still I'm recieving an unexpected indent error. Does anyone know what's causing this error?

错误截图

Its no real error, I guess. Only a linting error. Deleting the line may do the trick.

Some linteres require you to have a max of two empty lines between some statements.

Errors occurs when part of your code is indented with spaces, while other parts are indented with tabs. The best practice is to use four spaces instead of tabs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM