mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Allow None as a valid value for an optional parameter (fix testEditOrganization)
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
import Organization
|
||||
import Repository
|
||||
import NamedUser
|
||||
# This allows None as a valid value for an optional parameter
|
||||
|
||||
class DefaultValueForOptionalParametersType:
|
||||
pass
|
||||
DefaultValueForOptionalParameters = DefaultValueForOptionalParametersType()
|
||||
|
||||
class Event( object ):
|
||||
def __init__( self, requester, attributes, lazy ):
|
||||
|
||||
Reference in New Issue
Block a user