mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Improve generated docstrings (slightly)
This commit is contained in:
@@ -21,7 +21,9 @@ Methods
|
||||
-------
|
||||
* `get_user()`: `AuthenticatedUser`
|
||||
* `get_user( login )`: `NamedUser`
|
||||
* `login`: string
|
||||
* `get_organization( login )`: `Organization`
|
||||
* `login`: string
|
||||
* `get_gist( id )`: `Gist`
|
||||
* `id`: string
|
||||
* `get_gists()`: `PaginatedList` of `Gist`
|
||||
|
||||
@@ -43,11 +43,13 @@ class Generator():
|
||||
if memberName in classDescription.properties:
|
||||
return [
|
||||
"Please edit this generated docstring for property " + className + "." + memberName + ".",
|
||||
classDescription.properties[ memberName ]
|
||||
"",
|
||||
":type: " + classDescription.properties[ memberName ]
|
||||
]
|
||||
elif memberName in classDescription.methods:
|
||||
return [
|
||||
"Please edit this generated docstring for method " + className + "." + memberName + ".",
|
||||
"",
|
||||
"Calls " + ( classDescription.methods[ memberName ].verb or "WTF" ) + " " + ( classDescription.methods[ memberName ].url or "WTF" ),
|
||||
"",
|
||||
] + [
|
||||
|
||||
Reference in New Issue
Block a user