Python Forum
New to python, question regarding PEP8
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to python, question regarding PEP8
#4
I am not 100% sure the warning is about the format/indentation of the dict literal. On other hand if it was about other part of the code, you should get IndentationError when trying to run, not PyCharm/linter warning

In any case, never mix tabs and spaces for indentation. The PEP8 recommends using 4 spaces per level. Most IDEs have a setting to automatically convert tab to defined number of spaces.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: New to python, question regarding PEP8 - by buran - Apr-14-2022, 06:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Noob warning: trying to use pip to install pytest and pep8 in Command Prompt adifrank 4 5,575 Dec-20-2020, 04:23 AM
Last Post: adifrank
  Type hinting style and PEP8 hlovatt 2 2,970 May-07-2020, 08:12 PM
Last Post: hlovatt
  Visual Studio Code - PEP8 Lambda Issue Qui_Ten 1 2,809 Jan-28-2019, 08:17 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020