Fix manager types scope (#991)

* Fix manager types scope

* Restore incremental mode and mention in developer docs

* Separate dev mypy config and regular one

* Document config files usage
This commit is contained in:
sterliakov
2022-06-14 21:30:13 +04:00
committed by GitHub
parent ae5b1a4edf
commit 32e13c37a6
8 changed files with 73 additions and 8 deletions

View File

@@ -212,7 +212,11 @@ class AddManagers(ModelClassInitializer):
# replace self type with new class, if copying method
if isinstance(sym.node, FuncDef):
helpers.copy_method_to_another_class(
new_cls_def_context, self_type=custom_manager_type, new_method_name=name, method_node=sym.node
new_cls_def_context,
self_type=custom_manager_type,
new_method_name=name,
method_node=sym.node,
original_module_name=base_manager_info.module_name,
)
continue