瀏覽代碼

Fix typing on 3.5.

Jelmer Vernooij 4 年之前
父節點
當前提交
5aa2b7f53b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/index.py

+ 1 - 1
dulwich/index.py

@@ -383,7 +383,7 @@ def commit_tree(
     Returns:
       SHA1 of the created tree.
     """
-    trees: Dict[bytes, Any] = {b'': {}}
+    trees = {b'': {}}  # type: Dict[bytes, Any]
 
     def add_tree(path):
         if path in trees: