mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 07:47:09 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user