浏览代码

Fix docstrings for pydoctor

Jelmer Vernooij 1 月之前
父节点
当前提交
acb22102e2
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 3 3
      dulwich/config.py
  2. 1 1
      dulwich/object_store.py
  3. 1 1
      dulwich/porcelain.py

+ 3 - 3
dulwich/config.py

@@ -114,9 +114,9 @@ def _match_gitdir_pattern(
 
 
 def match_glob_pattern(value: str, pattern: str) -> bool:
-    """Match a value against a glob pattern.
+    r"""Match a value against a glob pattern.
 
-    Supports simple glob patterns like * and **.
+    Supports simple glob patterns like ``*`` and ``**``.
 
     Raises:
         ValueError: If the pattern is invalid
@@ -1004,7 +1004,7 @@ class ConfigFile(ConfigDict):
     def _match_hasconfig_pattern(self, value: bytes, pattern: str) -> bool:
         """Match a config value against a hasconfig pattern.
 
-        Supports simple glob patterns like * and **.
+        Supports simple glob patterns like ``*`` and ``**``.
         """
         value_str = value.decode(self.encoding, errors="replace")
         return match_glob_pattern(value_str, pattern)

+ 1 - 1
dulwich/object_store.py

@@ -1390,7 +1390,7 @@ class DiskObjectStore(PackBasedObjectStore):
         """Prune/clean up this object store.
 
         This removes temporary files that were left behind by interrupted
-        pack operations. These are files that start with 'tmp_pack_' in the
+        pack operations. These are files that start with ``tmp_pack_`` in the
         repository directory or files with .pack extension but no corresponding
         .idx file in the pack directory.
 

+ 1 - 1
dulwich/porcelain.py

@@ -3146,7 +3146,7 @@ def cherry_pick(
       repo: Repository to cherry-pick into
       committish: Commit to cherry-pick
       no_commit: If True, do not create a commit after applying changes
-      continue\\_: Continue an in-progress cherry-pick after resolving conflicts
+      continue\_: Continue an in-progress cherry-pick after resolving conflicts
       abort: Abort an in-progress cherry-pick
 
     Returns: