basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

Enforce modules with certain path mappings meet certain interfaces

Open KotlinIsland opened this issue 3 years ago • 0 comments

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

KotlinIsland avatar Apr 11 '22 03:04 KotlinIsland