python syntax_error official true

TabError

ID: python/taberror

Also available as: JSON · Markdown
80%Fix Rate
95%Confidence
0Evidence

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.x active

Root Cause

Inconsistent use of tabs and spaces. A line uses tabs when surrounding code uses spaces, or vice versa.

generic

Official Documentation

https://docs.python.org/3/library/exceptions.html

Workarounds

  1. 90% success Standardize on spaces-only indentation throughout the file
    Configure your editor to insert spaces when Tab is pressed