@@ -96,13 +96,7 @@ class ConnectionProfile:
9696 A group of related key/value pairs describing a specific piece
9797 of a Connection (profile). Keys are also referred to as properties.
9898 """
99- # The settings object "connection" is special: It must always be present
100- # because it contains the UUID and the connection type which are required:
101- connection : ConnectionSettings = field (
102- metadata = {'dbus_name' : 'connection' ,
103- 'settings_class' : ConnectionSettings },
104- )
105- # The list of the remaining settings classes was generated by
99+ # The list of the settings classes was generated by
106100 # tools/generate-settings-dataclasses-jinja.py which generates the
107101 # settings classes themselfes as well.
108102 # If possible, please make changes by also updating the script.
@@ -143,10 +137,10 @@ class ConnectionProfile:
143137 'settings_class' : CdmaSettings },
144138 default = None ,
145139 )
146- connection : Optional [ ConnectionSettings ] = field (
140+ connection : ConnectionSettings = field (
147141 metadata = {'dbus_name' : 'connection' ,
148142 'settings_class' : ConnectionSettings },
149- default = None ,
143+ default_factory = ConnectionSettings ,
150144 )
151145 dcb : Optional [DcbSettings ] = field (
152146 metadata = {'dbus_name' : 'dcb' ,
0 commit comments