According to the PEP8 Style Guide, dunder names at the module level should be placed before any import statements, with the exception of any __future__ module imports.
There should be a single line of spacing before any module-level dunder names, and a single line of spacing after them; they may be grouped.
According to the PEP8 Style Guide, dunder names at the module level should be placed before any
import
statements, with the exception of any__future__
module imports.There should be a single line of spacing before any module-level dunder names, and a single line of spacing after them; they may be grouped.
Related: