2
0
Jelmer Vernooij 3 жил өмнө
parent
commit
36b951c386

+ 1 - 1
dulwich/config.py

@@ -387,7 +387,7 @@ class ConfigFile(ConfigDict):
         super(ConfigFile, self).__init__(values=values, encoding=encoding)
         super(ConfigFile, self).__init__(values=values, encoding=encoding)
         self.path = None
         self.path = None
 
 
-    @classmethod
+    @classmethod  # noqa: C901
     def from_file(cls, f: BinaryIO) -> "ConfigFile":  # noqa: C901
     def from_file(cls, f: BinaryIO) -> "ConfigFile":  # noqa: C901
         """Read configuration from a file-like object."""
         """Read configuration from a file-like object."""
         ret = cls()
         ret = cls()