IndentationError: expected an indented block
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
No file, test, or entry point is named. Start by inspecting the repository to find the Python example related to this error, then reproduce the reported tab-and-space indentation problem if possible. Done should mean the relevant repository content is identified and any needed correction is clearly specified.
Written by the indexing model from the issue text.
Description
在从一个编辑器换到另一个编辑器后再次编辑运行时遇到的问题。
产生原因:未对齐。
真正原因:编辑器设置不同,在其中一个编辑器中默认会把tab换成四个空格,导致空格与tab混用。
解决方案:将tab全部替换为4个空格或将四个空格全部替换为tab
PS:在编辑器中显示全部空白字符就能非常方便的查看是tab还是空格
- Dominant language
- Python
- Stars
- 10
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·