Resolve taxonomy namespaces from trusted schema references - #182
Merged
manusimidt merged 1 commit intoAug 10, 2026
Merged
Conversation
manusimidt
reviewed
Aug 10, 2026
| from xbrl.ns_map import NS_MAP | ||
|
|
||
|
|
||
| def test_cef_2026_namespace_mapping() -> None: |
Owner
There was a problem hiding this comment.
not sure if this unit test is really necessary, but ok, better too much than to little :D
manusimidt
approved these changes
Aug 10, 2026
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.
Summary
Why
A filing can load a presentation or linkbase taxonomy that references the canonical schema declaring its fact namespace. If that canonical schema is absent from both the static map and local cache, the current parser cannot resolve the namespace even though an authoritative schema relationship was already parsed.
The new behavior is disabled by default. Callers must opt in, and unresolved namespaces continue to raise TaxonomyNotFound.
Dependency
PR #183 restores the upstream CI baseline with current Ruff and mypy releases and removes the external-network cache test. It is intentionally kept separate and must land before this resolver PR can show a green matrix.
Validation