title: "Code is unreachable" but code still gets reached (Visual Studio Code)
body: <p>I have the following code that accesses a website and stops browser notifications:</p>
  <pre><code>from selenium import webdriver
  from webdriver_manager.chrome import ChromeDriverManager
  from selenium.webdriver.chrome.options import Options
  
  option = webdriver.ChromeOptions()
  ***option.add_experimental_option(&quot;excludeSwitches&quot;, [&quot;enable-automation&quot;])
  option.add_experimental_option('useAutomationExtension', False)
  option.add_argument(&quot;--disable-infobars&quot;)
  option.add_argument(&quot;start-maximized&quot;)
  option.add_argument(&quot;--disable-extensions&quot;)
  option.add_experimental_option(&quot;detach&quot;, True)
  option.add_experimental_option(&quot;prefs&quot;, { 
      &quot;profile.default_content_setting_values.notifications&quot;: 2 
  })
  
  driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()),options=option)
  driver.get(&quot;https://www.reddit.com/r/AskReddit/&quot;)
  </code></pre>
  <p>The code runs, but my IDE (Visual Studio Code) says that from *** onwards the &quot;Code is unreachable Pylance&quot;. Does anyone know how I could fix this? It's annoying since it grays out everything after the *** line. Thank you.</p>
  <p>Visual representation of what I'm seeing:</p>
  <p><a href="https://i.stack.imgur.com/19aj3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/19aj3.png" alt="enter image description here" /></a></p>
  <p>With warning:</p>
  <p><a href="https://i.stack.imgur.com/cRRUj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cRRUj.png" alt="enter image description here" /></a></p>