You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def __new__(cls: Type[Any], serial: str) -> Any:
"""
Ensure that only one instance of Driver exists per device serial number.
"""
if serial not in cls._instance:
cls._instance[serial] = super().__new__(cls)
return cls._instance[serial]
No description provided.
The text was updated successfully, but these errors were encountered: