Config Router

  • Google Sheets
  • CCNA Online training
    • CCNA
  • CISCO Lab Guides
    • CCNA Security Lab Manual With Solutions
    • CCNP Route Lab Manual with Solutions
    • CCNP Switch Lab Manual with Solutions
  • Juniper
  • Linux
  • DevOps Tutorials
  • Python Array
You are here: Home / What is PEP8’s E128: continuation line under-indented for visual indent?

What is PEP8’s E128: continuation line under-indented for visual indent?

August 20, 2021 by James Palmer

PEP-8 recommends you indent lines to the opening parentheses if you put anything on the first line, so it should either be indenting to the opening bracket:
urlpatterns = patterns(”,
url(r’^$’, listing, name=’investment-listing’))

or not putting any arguments on the starting line, then indenting to a uniform level:
urlpatterns = patterns(
”,
url(r’^$’, listing, name=’investment-listing’),
)

urlpatterns = patterns(
”, url(r’^$’, listing, name=’investment-listing’))

I suggest taking a read through PEP-8 – you can skim through a lot of it, and it’s pretty easy to understand, unlike some of the more technical PEPs.

This goes also for statements like this (auto-formatted by PyCharm):
return combine_sample_generators(sample_generators[‘train’]),
combine_sample_generators(sample_generators[‘dev’]),
combine_sample_generators(sample_generators[‘test’])

Which will give the same style-warning. In order to get rid of it I had to rewrite it to:
return
combine_sample_generators(sample_generators[‘train’]),
combine_sample_generators(sample_generators[‘dev’]),
combine_sample_generators(sample_generators[‘test’])

Related

Filed Under: Uncategorized

Recent Posts

  • How do I give user access to Jenkins?
  • What is docker volume command?
  • What is the date format in Unix?
  • What is the difference between ARG and ENV Docker?
  • What is rsync command Linux?
  • How to Add Music to Snapchat 2021 Android? | How to Search, Add, Share Songs on Snapchat Story?
  • How to Enable Snapchat Notifications for Android & iPhone? | Steps to Turn on Snapchat Bitmoji Notification
  • Easy Methods to Fix Snapchat Camera Not Working Black Screen Issue | Reasons & Troubleshooting Tips to Solve Snapchat Camera Problems
  • Detailed Procedure for How to Update Snapchat on iOS 14 for Free
  • What is Snapchat Spotlight Feature? How to Make a Spotlight on Snapchat?
  • Snapchat Hack Tutorial 2021: Can I hack a Snapchat Account without them knowing?

Copyright © 2025 · News Pro Theme on Genesis Framework · WordPress · Log in