2
0
Эх сурвалжийг харах

Fix warning for ConfigFile.from_file.

Jelmer Vernooij 4 жил өмнө
parent
commit
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, ...]]