|
|
@ -145,8 +145,14 @@ def _load_package_modules(
|
|
|
|
package_name = package_path.name
|
|
|
|
package_name = package_path.name
|
|
|
|
|
|
|
|
|
|
|
|
for file_path in package_path.rglob("*.py"):
|
|
|
|
for file_path in package_path.rglob("*.py"):
|
|
|
|
if not file_path.name.startswith("__"):
|
|
|
|
if file_path.name.startswith("_"):
|
|
|
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
relative_module_name = file_path.relative_to(package_path)
|
|
|
|
relative_module_name = file_path.relative_to(package_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if relative_module_name.name.startswith("_"):
|
|
|
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
# Get the full namespace of the module
|
|
|
|
# Get the full namespace of the module
|
|
|
|
namespace = str(relative_module_name).replace(".py", "").replace("/", ".")
|
|
|
|
namespace = str(relative_module_name).replace(".py", "").replace("/", ".")
|
|
|
|
# Keep only the top level namespace
|
|
|
|
# Keep only the top level namespace
|
|
|
@ -222,7 +228,7 @@ Classes
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
for class_ in classes:
|
|
|
|
for class_ in classes:
|
|
|
|
if not class_['is_public']:
|
|
|
|
if not class_["is_public"]:
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
if class_["kind"] == "TypedDict":
|
|
|
|
if class_["kind"] == "TypedDict":
|
|
|
|