basedmypy
basedmypy copied to clipboard
Enforce modules with certain path mappings meet certain interfaces
Something like a mapping declaration
This would enforce that any module/file that meets that filter must meet the specified type.
from basedtyping import module_type_map
module_type_map({
"pages.*": PageType,
"apis.*": APIType,
})
relates #262