From ff9f1d9d516950733e17015f99bb148782f8ad01 Mon Sep 17 00:00:00 2001 From: Manuel Schmidt Date: Sat, 6 Jul 2024 11:20:27 +0200 Subject: [PATCH] Fixed #136 --- tests/test_local_taxonomy.py | 6 +++--- xbrl/taxonomy.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_local_taxonomy.py b/tests/test_local_taxonomy.py index 81bd203..1737361 100644 --- a/tests/test_local_taxonomy.py +++ b/tests/test_local_taxonomy.py @@ -18,10 +18,10 @@ def test_parse_taxonomy(self): cache_dir: str = './cache/' cache: HttpCache = HttpCache(cache_dir) print(f"Saving to {cache_dir}") - imported_schema_uris = set() + extension_schema_path: str = './tests/data/example.xsd' # extension_schema_path: str = './data/example.xsd' - tax: TaxonomySchema = parse_taxonomy(extension_schema_path, cache, imported_schema_uris = set()) + tax: TaxonomySchema = parse_taxonomy(extension_schema_path, cache) print(tax) srt_tax: TaxonomySchema = tax.get_taxonomy('http://fasb.org/srt/2020-01-31') self.assertTrue(srt_tax) @@ -32,4 +32,4 @@ def test_parse_taxonomy(self): if __name__ == '__main__': - unittest.main() + unittest.main() \ No newline at end of file diff --git a/xbrl/taxonomy.py b/xbrl/taxonomy.py index f9b078c..9e7bf92 100644 --- a/xbrl/taxonomy.py +++ b/xbrl/taxonomy.py @@ -281,6 +281,7 @@ "http://xbrl.sec.gov/dei/2021": "https://xbrl.sec.gov/dei/2021/dei-2021.xsd", "http://xbrl.sec.gov/dei/2022": "https://xbrl.sec.gov/dei/2022/dei-2022.xsd", "http://xbrl.sec.gov/dei/2023": "https://xbrl.sec.gov/dei/2023/dei-2023.xsd", + "http://xbrl.sec.gov/dei/2024": "https://xbrl.sec.gov/dei/2024/dei-2024.xsd", "http://xbrl.sec.gov/dei/2021q4": "https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd", "http://xbrl.sec.gov/dei-def/2021": "https://xbrl.sec.gov/dei/2021/dei-2021_def.xsd", "http://xbrl.sec.gov/dei-entire/2021": "https://xbrl.sec.gov/dei/2021/dei-entire-2021.xsd",