# IndentationError messages: 'expected an indented block after function definition on line 1', 'unexpected indent', 'unindent does not match any outer indentation level' (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/indentationerror-messages-expected-an-indented-block-after-function-definition-on-line-1-unexpected-acaeefc37321
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, indentationerror

compile of 'def f():/pass', 'x=1/  y=2', and 'if 1:/    x=1/  y=2'. Mixed tabs/spaces gave TabError: inconsistent use of tabs and spaces in indentation.
