Explorar o código

Fix warning for ConfigFile.from_file.

Jelmer Vernooij %!s(int64=4) %!d(string=hai) anos
pai
achega
642d726c8c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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, ...]]