Set types of many parameters

This commit is contained in:
Vincent Jacques
2012-05-27 20:46:29 +01:00
parent c4bebd9a11
commit 821ac669f2
21 changed files with 316 additions and 209 deletions
+4
View File
@@ -46,6 +46,10 @@ class UserKey( 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: