-
Notifications
You must be signed in to change notification settings - Fork 0
Order
Vinicius Reif Biavatti edited this page Jul 25, 2022
·
1 revision
- Imports are sorted alphabetically, and should respect the import order
- The order is:
- 1º Module imports
- 2º Resource imports
✅ Do
import abc
import sys
from math import pi
from typing import (
Union,
TYPE_CHECKING as TYPE_CHECK,
)
❌ Don't
import sys
from typing import (
Union,
TYPE_CHECKING as TYPE_CHECK,
)
import abc
from math import pi
- Home
- Structural Naming Conventions
- Format Conventions
- Code Naming Conventions
- Inheritance
- Access Modifiers
- Importation
- Functions and Methods
- Documentation
- Resources