diff --git a/addons/icon_explorer/internal/ext/simple_icons/collection.gd b/addons/icon_explorer/internal/ext/simple_icons/collection.gd index c606840..76fa2d8 100644 --- a/addons/icon_explorer/internal/ext/simple_icons/collection.gd +++ b/addons/icon_explorer/internal/ext/simple_icons/collection.gd @@ -4,7 +4,7 @@ const IconSimpleIcons := preload("res://addons/icon_explorer/internal/ext/simple const ZipUnpacker := preload("res://addons/icon_explorer/internal/scripts/tools/zip_unpacker.gd") const _DOWNLOAD_FILE: String = "https://github.com/simple-icons/simple-icons/archive/master.zip" -var _TITLE_TO_SLUG_REPLACEMENTS: Dictionary = { +var _TITLE_TO_SLUG_REPLACEMENTS: Dictionary[String, String] = { "+": "plus", ".": "dot", "&": "and", diff --git a/addons/icon_explorer/internal/scripts/tools/zip_unpacker.gd b/addons/icon_explorer/internal/scripts/tools/zip_unpacker.gd index 4708342..0839ee0 100644 --- a/addons/icon_explorer/internal/scripts/tools/zip_unpacker.gd +++ b/addons/icon_explorer/internal/scripts/tools/zip_unpacker.gd @@ -72,7 +72,7 @@ func unpack_mt(thread_count: int) -> bool: return true func _create_directories(paths: PackedStringArray) -> bool: - var created: Dictionary = {} + var created: Dictionary[String, Object] = {} for path: String in paths: var dir_path: String = path.get_base_dir() if (!self._has_filter() || self._is_in_filter(path)) && !(dir_path in created): diff --git a/addons/qr_code/qr_code.gd b/addons/qr_code/qr_code.gd index 1e43fab..674fb6a 100644 --- a/addons/qr_code/qr_code.gd +++ b/addons/qr_code/qr_code.gd @@ -301,7 +301,7 @@ const _DATA_CAPACITY: Array[Dictionary] = [ }, ] -const _ALPHANUMERIC_CHARACTERS: Dictionary = { +const _ALPHANUMERIC_CHARACTERS: Dictionary[String, int] = { "0" : 0, "1" : 1, "2" : 2, diff --git a/examples/licenses/display_licenses.gd b/examples/licenses/display_licenses.gd index 6567013..6331064 100644 --- a/examples/licenses/display_licenses.gd +++ b/examples/licenses/display_licenses.gd @@ -37,7 +37,7 @@ func _populate_tree() -> void: # populate the tree node # create a category cache to easily access already created category items - var category_cache: Dictionary = {} + var category_cache: Dictionary[String, TreeItem] = {} var root: TreeItem = self._tree.create_item(null) category_cache[""] = root @@ -50,7 +50,7 @@ func _populate_tree() -> void: item.set_meta("idx", idx) ## create a category item in the tree -func _create_category_item(category_cache: Dictionary, category: String, root: TreeItem) -> TreeItem: +func _create_category_item(category_cache: Dictionary[String, TreeItem], category: String, root: TreeItem) -> TreeItem: if category in category_cache: return category_cache[category] var category_item: TreeItem