diff --git a/lib/ansible/utils/module_docs.py b/lib/ansible/utils/module_docs.py
index 9a7ee0ae33..e296c0c698 100644
--- a/lib/ansible/utils/module_docs.py
+++ b/lib/ansible/utils/module_docs.py
@@ -23,7 +23,7 @@ import ast
 import yaml
 import traceback
 
-from collections import MutableMapping
+from collections import MutableMapping, MutableSet, MutableSequence
 from ansible.plugins import fragment_loader
 
 # modules that are ok that they do not have documentation strings