Browse Source

Fix docstrings for pydoctor (#1629)

Jelmer Vernooij 1 tháng trước cách đây
mục cha
commit
6c57612a93
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      dulwich/config.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)