Commits

Antoine Millet committed d9b5425

Allow to give String constructor arguments to children

  • Participants
  • Parent commits b459b99

Comments (0)

Files changed (1)

File dotconf/schema/types.py

         interface = "127.0.0.1"
     """
 
-    def __init__(self, version=None):
+    def __init__(self, version=None, **kwargs):
         if not IPADDR_ENABLED:
             raise RuntimeError('You must install the ipaddr package to use this type')
-        super(IPAddress, self).__init__()
+        super(IPAddress, self).__init__(**kwargs)
         self._version = version
 
     def validate(self, value):
         interface = "0.0.0.0:80"
     """
 
-    def __init__(self, default_addr='127.0.0.1', default_port=None, version=None):
+    def __init__(self, default_addr='127.0.0.1', default_port=None, version=None, **kwargs):
         if not IPADDR_ENABLED:
             raise RuntimeError('You must install the ipaddr package to use this type')
         self._default_addr = default_addr
         self._default_port = default_port
         self._version = version
-        super(IPSocketAddress, self).__init__()
+        super(IPSocketAddress, self).__init__(**kwargs)
 
     def validate(self, value):
         raw_addr, _, raw_port = value.partition(':')