Drop remaining "OrderedDict" usages.
@@ -8,7 +8,6 @@ from __future__ import annotations
import codecs
import os
-from collections import OrderedDict
__copyright__ = "Copyright 2013 Colour Developers"
__license__ = "New BSD License - https://opensource.org/licenses/BSD-3-Clause"
@@ -46,7 +45,7 @@ https://opensource.org/licenses/BSD-3-Clause
]
-def extract_todo_items(root_directory: str) -> OrderedDict:
+def extract_todo_items(root_directory: str) -> dict:
"""
Extract the TODO items from given directory.
@@ -57,11 +56,11 @@ def extract_todo_items(root_directory: str) -> OrderedDict:
Returns
-------
- :class:`collections.OrderedDict`
+ :class:`dict`
TODO items.
"""
- todo_items = OrderedDict()
+ todo_items = {}
for root, dirnames, filenames in os.walk(root_directory):
for filename in filenames:
if not filename.endswith(".py"):
@@ -97,7 +96,7 @@ def extract_todo_items(root_directory: str) -> OrderedDict:
return todo_items
-def export_todo_items(todo_items: OrderedDict, file_path: str):
+def export_todo_items(todo_items: dict, file_path: str):
"""
Export TODO items to given file.
