Repository navigation
Point the meta-agents docs at mesa.experimental.meta_agents - #3957
Merged
Merged
Conversation
mesa#3875 moved meta-agents back to mesa.experimental.meta_agents, but the migration guide and the API page still import from mesa.meta_agents, which no longer exists. Copying the examples fails with ModuleNotFoundError, and the API page's automodule can't import the module, so the reference section is empty on the docs site. Update the imports and the automodule target, and fix the migration guide heading, which said meta-agents moved out of experimental.
tpike3
approved these changes
Oct 20, 2026
tpike3
left a comment
Member
There was a problem hiding this comment.
Thanks for the catch @AshNicolus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-PR Checklist
Summary
The meta-agents docs import from
mesa.meta_agents, which no longer exists. Anyone copying the examples from the migration guide or the API page gets aModuleNotFoundError, and the API reference section for meta-agents is empty on the docs site. This PR points them atmesa.experimental.meta_agents.Bug / Issue
#3875 moved meta-agents back to
mesa.experimental.meta_agents(and updatedtest_import_namespace.pyto match), but the docs weren't part of that change.The API page's
automodulefails the same way, so Sphinx logs a warning and renders no API reference:Implementation
docs/migration_guide.md: fixed the import in the example, and the heading and first sentence, which said meta-agents moved out of experimental.docs/apis/meta_agents.md: fixed the import in the example and theautomoduletarget.Testing
mainthe meta-agents page has no API reference and Sphinx warns as above. With this change it builds without that warning and documentsMetaAgentsand its methods.pre-commitpasses, and Vale reports nothing new on the changed lines.Additional Notes
The warehouse example in mesa-examples imports from
mesa.meta_agentstoo, which is part of why theexamplesCI job is failing. I'll fix that in a separate PR on mesa-examples.