Skip to content

Commit 6d44bf6

Browse files
committed
Use serialization TypedDicts to reduce Any instances
1 parent 7889a54 commit 6d44bf6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎archinstall/lib/models/application.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def json(self) -> BluetoothConfigSerialization:
6969
return {'enabled': self.enabled}
7070

7171
@staticmethod
72-
def parse_arg(arg: dict[str, Any]) -> 'BluetoothConfiguration':
72+
def parse_arg(arg: BluetoothConfigSerialization) -> 'BluetoothConfiguration':
7373
return BluetoothConfiguration(arg['enabled'])
7474

7575

@@ -83,7 +83,7 @@ def json(self) -> PowerManagementConfigSerialization:
8383
}
8484

8585
@staticmethod
86-
def parse_arg(arg: dict[str, Any]) -> 'PowerManagementConfiguration':
86+
def parse_arg(arg: PowerManagementConfigSerialization) -> 'PowerManagementConfiguration':
8787
return PowerManagementConfiguration(
8888
PowerManagement(arg['power_management']),
8989
)
@@ -97,7 +97,7 @@ def json(self) -> PrintServiceConfigSerialization:
9797
return {'enabled': self.enabled}
9898

9999
@staticmethod
100-
def parse_arg(arg: dict[str, Any]) -> 'PrintServiceConfiguration':
100+
def parse_arg(arg: PrintServiceConfigSerialization) -> 'PrintServiceConfiguration':
101101
return PrintServiceConfiguration(arg['enabled'])
102102

103103

0 commit comments

Comments
 (0)