arelle.conformance.error_code_matcher

See COPYRIGHT.md for copyright information.

Module Contents

Functions

error_code_matches

Whether an error code (or assertion result) reported by Arelle satisfies one listed by a conformance suite.

filter_ignored_errors

Remove errors matching a code the conformance suite ignores, unless they also match a code the suite itself expects. Some variations ignore a code they also expect.

Data

API

arelle.conformance.error_code_matcher.ErrorT

‘TypeVar(…)’

arelle.conformance.error_code_matcher.RULE_REFERENCED_CODE_PREFIXES

(‘ESEF.’, ‘NL.NL-KVK’)

arelle.conformance.error_code_matcher.UKSEF_SUITE_CODE_AUTHORITIES

None

arelle.conformance.error_code_matcher.UKSEF_RULE_AUTHORITIES

None

arelle.conformance.error_code_matcher.HIERARCHICAL_CODE_PREFIXES

(‘EFM.’, ‘EXG.’)

arelle.conformance.error_code_matcher.SUITE_CODE_ALTERNATIVES: dict[str, frozenset[str]]

None

arelle.conformance.error_code_matcher.error_code_matches(expected: Any, actual: Any) → bool

Whether an error code (or assertion result) reported by Arelle satisfies one listed by a conformance suite.

arelle.conformance.error_code_matcher.filter_ignored_errors(errors: list[arelle.conformance.error_code_matcher.ErrorT], ignored_codes: collections.abc.Sequence[arelle.ModelValue.QName | str], suite_expected_codes: collections.abc.Sequence[arelle.ModelValue.QName | str]) → list[arelle.conformance.error_code_matcher.ErrorT]

Remove errors matching a code the conformance suite ignores, unless they also match a code the suite itself expects. Some variations ignore a code they also expect.