@@ -125,13 +125,13 @@ def from_dict(cls, data: dict) -> "ClientWindowInfo":
125125 ClientWindowInfo: A new instance of ClientWindowInfo.
126126 """
127127 return cls (
128- client_window = str ( data .get ("clientWindow" , "" ) ),
129- state = str ( data .get ("state" , "" ) ),
130- width = int ( data .get ("width" , 0 ) ),
131- height = int ( data .get ("height" , 0 ) ),
132- x = int ( data .get ("x" , 0 ) ),
133- y = int ( data .get ("y" , 0 ) ),
134- active = bool ( data .get ("active" , False ) ),
128+ client_window = data .get ("clientWindow" ),
129+ state = data .get ("state" ),
130+ width = data .get ("width" ),
131+ height = data .get ("height" ),
132+ x = data .get ("x" ),
133+ y = data .get ("y" ),
134+ active = data .get ("active" ),
135135 )
136136
137137
@@ -188,4 +188,4 @@ def get_client_windows(self) -> list[ClientWindowInfo]:
188188 List[ClientWindowInfo]: A list of client window information.
189189 """
190190 result = self .conn .execute (command_builder ("browser.getClientWindows" , {}))
191- return [ClientWindowInfo .from_dict (window ) for window in result ["clientWindows" ]]
191+ return [ClientWindowInfo .from_dict (window ) for window in result ["clientWindows" ]]
0 commit comments