fix: fix type hint of remove_empty_value

This commit is contained in:
TonyCrane
2022-02-15 14:38:55 +08:00
parent 4c16bfc2c0
commit db71ed1ae9

View File

@ -17,7 +17,7 @@ def get_manim_dir() -> str:
return os.path.abspath(os.path.join(manimlib_dir, "..")) return os.path.abspath(os.path.join(manimlib_dir, ".."))
def remove_empty_value(dictionary: dict[str, Any]) -> dict[str, Any]: def remove_empty_value(dictionary: dict[str, Any]) -> None:
for key in list(dictionary.keys()): for key in list(dictionary.keys()):
if dictionary[key] == "": if dictionary[key] == "":
dictionary.pop(key) dictionary.pop(key)