-
Notifications
You must be signed in to change notification settings - Fork 0
Blank Lines
Vinicius Reif Biavatti edited this page Jul 25, 2022
·
1 revision
- Use two blank lines to separate imports, functions and classes
- For inside a class, use only one line to separate the methods
- Avoid using unnecessary blank lines
✅ Do
import abc
class Person:
...
def main():
...
class Person:
def __init__(self) -> None:
...
def talk(self, message: str) -> None:
...
❌ Don't
import abc
class Person:
...
def main():
...
class Person:
def __init__(self) -> None:
...
def talk(self, message: str) -> None:
...
- Home
- Structural Naming Conventions
- Format Conventions
- Code Naming Conventions
- Inheritance
- Access Modifiers
- Importation
- Functions and Methods
- Documentation
- Resources