1515# specific language governing permissions and limitations
1616# under the License.
1717
18- from typing import Any , Dict , List , Optional , Union
18+ from typing import Any , Optional , Union
1919
2020from selenium .webdriver .common .bidi .common import command_builder
2121
@@ -72,8 +72,8 @@ def __init__(
7272 self .heading = heading
7373 self .speed = speed
7474
75- def to_dict (self ) -> Dict [str , Union [float , None ]]:
76- result : Dict [str , Union [float , None ]] = {
75+ def to_dict (self ) -> dict [str , Union [float , None ]]:
76+ result : dict [str , Union [float , None ]] = {
7777 "latitude" : self .latitude ,
7878 "longitude" : self .longitude ,
7979 "accuracy" : self .accuracy ,
@@ -104,7 +104,7 @@ def __init__(self, type: str = TYPE_POSITION_UNAVAILABLE):
104104 raise ValueError (f'type must be "{ self .TYPE_POSITION_UNAVAILABLE } "' )
105105 self .type = type
106106
107- def to_dict (self ) -> Dict [str , str ]:
107+ def to_dict (self ) -> dict [str , str ]:
108108 return {"type" : self .type }
109109
110110
@@ -120,8 +120,8 @@ def set_geolocation_override(
120120 self ,
121121 coordinates : Optional [GeolocationCoordinates ] = None ,
122122 error : Optional [GeolocationPositionError ] = None ,
123- contexts : Optional [List [str ]] = None ,
124- user_contexts : Optional [List [str ]] = None ,
123+ contexts : Optional [list [str ]] = None ,
124+ user_contexts : Optional [list [str ]] = None ,
125125 ) -> None :
126126 """Set geolocation override for the given contexts or user contexts.
127127
@@ -147,7 +147,7 @@ def set_geolocation_override(
147147 if contexts is None and user_contexts is None :
148148 raise ValueError ("Must specify either contexts or userContexts" )
149149
150- params : Dict [str , Any ] = {}
150+ params : dict [str , Any ] = {}
151151
152152 if coordinates is not None :
153153 params ["coordinates" ] = coordinates .to_dict ()
0 commit comments