mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Assert types of parameters of methods of Repository and RepositoryKey
This commit is contained in:
@@ -51,6 +51,10 @@ class RepositoryKey( object ):
|
||||
)
|
||||
|
||||
def edit( self, title = DefaultValueForOptionalParameters, key = DefaultValueForOptionalParameters ):
|
||||
if title is not DefaultValueForOptionalParameters:
|
||||
assert isinstance( title, ( str, unicode ) ), title
|
||||
if key is not DefaultValueForOptionalParameters:
|
||||
assert isinstance( key, ( str, unicode ) ), key
|
||||
post_parameters = {
|
||||
}
|
||||
if title is not DefaultValueForOptionalParameters:
|
||||
|
||||
Reference in New Issue
Block a user