[py] Use native dict for type annotation (#16157)

NOKEYCHECK=True
GitOrigin-RevId: a59ddb4595de32c616e413778a6010af902d14ab
diff --git a/selenium/webdriver/common/bidi/session.py b/selenium/webdriver/common/bidi/session.py
index c167d4e..32eab4f 100644
--- a/selenium/webdriver/common/bidi/session.py
+++ b/selenium/webdriver/common/bidi/session.py
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from typing import Dict, Optional
+from typing import Optional
 
 from selenium.webdriver.common.bidi.common import command_builder
 
@@ -77,7 +77,7 @@
         self.file = file
         self.prompt = prompt
 
-    def to_dict(self) -> Dict[str, str]:
+    def to_dict(self) -> dict[str, str]:
         """Convert the UserPromptHandler to a dictionary for BiDi protocol.
 
         Returns: