ソースを参照

Fix warning for ConfigFile.from_file.

Jelmer Vernooij 4 年 前
コミット
642d726c8c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      dulwich/config.py

+ 1 - 1
dulwich/config.py

@@ -388,7 +388,7 @@ class ConfigFile(ConfigDict):
         self.path = None
 
     @classmethod
-    def from_file(cls, f: BinaryIO) -> "ConfigFile":
+    def from_file(cls, f: BinaryIO) -> "ConfigFile":  # noqa: C901
         """Read configuration from a file-like object."""
         ret = cls()
         section = None  # type: Optional[Tuple[bytes, ...]]