In one class I initialize a browser using selenium.webdriver and I want to use the same already opened browser in a different class. So I want to pass this webdriver as an argument to the function in that other class. However, no matter what I try, PyCharm is not giving me any hint about available methods of this webdriver object, even if I give it a hint that it is indeed a webdriver from selenium. How can I solve this properly? I know that I can initialize a webdriver and after end of work on that class i could remove it but this is not the right solution I guess.
My code:
from emails import FormalEmailInterface
from selenium import webdriver
class EmailTest(FormalEmailInterface):
def __init__(self, driver: webdriver, url: str):
self.driver = driver
self.url = url
""""Get temporary email address"""
def get_temp_email(self):
# self.driver. <-- NO HINTS HERE!!!
print(type(self.driver))
pass
Screen 1 - no hinting when webdriver comes from argument:

Screen 2 - properly hinting when webdriver comes straight from import:
