Răsfoiți Sursa

Convert :ivar: to Google style python docstrings.

Jelmer Vernooij 3 ani în urmă
părinte
comite
8d71d8d7c7
3 a modificat fișierele cu 10 adăugiri și 6 ștergeri
  1. 3 2
      dulwich/object_store.py
  2. 3 2
      dulwich/repo.py
  3. 4 2
      dulwich/web.py

+ 3 - 2
dulwich/object_store.py

@@ -1350,8 +1350,9 @@ class MissingObjectFinder(object):
 class ObjectStoreGraphWalker(object):
     """Graph walker that finds what commits are missing from an object store.
 
-    :ivar heads: Revisions without descendants in the local repo
-    :ivar get_parents: Function to retrieve parents in the local repo
+    Attributes:
+      heads: Revisions without descendants in the local repo
+      get_parents: Function to retrieve parents in the local repo
     """
 
     def __init__(self, local_heads, get_parents, shallow=None):

+ 3 - 2
dulwich/repo.py

@@ -327,9 +327,10 @@ class ParentsProvider(object):
 class BaseRepo(object):
     """Base class for a git repository.
 
-    :ivar object_store: Dictionary-like object for accessing
+    Attributes:
+      object_store: Dictionary-like object for accessing
         the objects
-    :ivar refs: Dictionary-like object with the refs in this
+      refs: Dictionary-like object with the refs in this
         repository
     """
 

+ 4 - 2
dulwich/web.py

@@ -286,7 +286,8 @@ def handle_service_request(req, backend, mat):
 class HTTPGitRequest(object):
     """Class encapsulating the state of a single git HTTP request.
 
-    :ivar environ: the WSGI environment for the request.
+    Attributes:
+      environ: the WSGI environment for the request.
     """
 
     def __init__(self, environ, start_response, dumb: bool = False, handlers=None):
@@ -358,7 +359,8 @@ class HTTPGitRequest(object):
 class HTTPGitApplication(object):
     """Class encapsulating the state of a git WSGI application.
 
-    :ivar backend: the Backend object backing this application
+    Attributes:
+      backend: the Backend object backing this application
     """
 
     services = {