mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Automatic implementation of url_parameters
This commit is contained in:
@@ -292,10 +292,13 @@ class NamedUser( object ):
|
||||
def get_repos( self, type = DefaultValueForOptionalParameters ):
|
||||
if type is not DefaultValueForOptionalParameters:
|
||||
assert isinstance( type, ( str, unicode ) ), type
|
||||
url_parameters = dict()
|
||||
if type is not DefaultValueForOptionalParameters:
|
||||
url_parameters[ "type" ] = type
|
||||
status, headers, data = self.__requester.request(
|
||||
"GET",
|
||||
str( self.url ) + "/repos",
|
||||
None,
|
||||
url_parameters,
|
||||
None
|
||||
)
|
||||
return PaginatedList.PaginatedList(
|
||||
|
||||
Reference in New Issue
Block a user