File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,41 +66,6 @@ def property_as_bool(
6666 return default
6767
6868
69- def properties_as_int_dict (
70- properties : dict [str , str ],
71- property_prefix : str ,
72- ) -> dict [str , int ]:
73- return {
74- key .removeprefix (property_prefix + "." ): value
75- for key in properties .keys ()
76- if key .startswith (property_prefix )
77- if (value := property_as_int (properties , key , None )) is not None
78- }
79-
80-
81- def properties_as_float_dict (
82- properties : dict [str , str ],
83- property_prefix : str ,
84- ) -> dict [str , float ]:
85- return {
86- key .removeprefix (property_prefix + "." ): value
87- for key in properties .keys ()
88- if key .startswith (property_prefix )
89- if (value := property_as_float (properties , key , None )) is not None
90- }
91-
92-
93- def properties_as_bool_dict (
94- properties : dict [str , str ],
95- property_prefix : str ,
96- ) -> dict [str , bool ]:
97- return {
98- key .removeprefix (property_prefix + "." ): property_as_bool (properties , key , False )
99- for key in properties .keys ()
100- if key .startswith (property_prefix )
101- }
102-
103-
10469def get_first_property_value (
10570 properties : Properties ,
10671 * property_names : str ,
You can’t perform that action at this time.
0 commit comments