@@ -124,19 +124,21 @@ def __init__(
124124 if hasattr (self , '_initialized' ) and self ._initialized :
125125 return
126126
127- self ._browser = browser
128- self ._connection_port = connection_port
129- self ._target_id = target_id
130- self ._connection_handler = ConnectionHandler (connection_port , self ._target_id )
131- self ._page_events_enabled = False
132- self ._network_events_enabled = False
133- self ._fetch_events_enabled = False
134- self ._dom_events_enabled = False
135- self ._runtime_events_enabled = False
136- self ._intercept_file_chooser_dialog_enabled = False
127+ self ._browser : 'Browser' = browser
128+ self ._connection_port : int = connection_port
129+ self ._target_id : str = target_id
130+ self ._connection_handler : ConnectionHandler = ConnectionHandler (
131+ connection_port , self ._target_id
132+ )
133+ self ._page_events_enabled : bool = False
134+ self ._network_events_enabled : bool = False
135+ self ._fetch_events_enabled : bool = False
136+ self ._dom_events_enabled : bool = False
137+ self ._runtime_events_enabled : bool = False
138+ self ._intercept_file_chooser_dialog_enabled : bool = False
137139 self ._cloudflare_captcha_callback_id : Optional [int ] = None
138- self ._browser_context_id = browser_context_id
139- self ._initialized = True
140+ self ._browser_context_id : Optional [ str ] = browser_context_id
141+ self ._initialized : bool = True
140142
141143 @classmethod
142144 def _remove_instance (cls , target_id : str ) -> None :
0 commit comments