Skip to content

Commit daee9a1

Browse files
imports
1 parent 8e97af9 commit daee9a1

File tree

17 files changed

+17
-17
lines changed

17 files changed

+17
-17
lines changed

appium/webdriver/extensions/action_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
try:
1818
from typing import Self
19-
except ImportError:
19+
except (ImportError, AttributeError):
2020
from typing_extensions import Self
2121

2222
from selenium.webdriver.common.action_chains import ActionChains

appium/webdriver/extensions/android/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
try:
1515
from typing import Self
16-
except ImportError:
16+
except (ImportError, AttributeError):
1717
from typing_extensions import Self
1818

1919
from selenium.common.exceptions import UnknownMethodException

appium/webdriver/extensions/android/gsm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
try:
1616
from typing import Self
17-
except ImportError:
17+
except (ImportError, AttributeError):
1818
from typing_extensions import Self
1919

2020
from selenium.common.exceptions import UnknownMethodException

appium/webdriver/extensions/android/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
try:
1616
from typing import Self
17-
except ImportError:
17+
except (ImportError, AttributeError):
1818
from typing_extensions import Self
1919

2020
from selenium.common.exceptions import UnknownMethodException

appium/webdriver/extensions/android/power.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
try:
1616
from typing import Self
17-
except ImportError:
17+
except (ImportError, AttributeError):
1818
from typing_extensions import Self
1919

2020
from selenium.common.exceptions import UnknownMethodException

appium/webdriver/extensions/android/sms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
try:
1616
from typing import Self
17-
except ImportError:
17+
except (ImportError, AttributeError):
1818
from typing_extensions import Self
1919

2020
from selenium.common.exceptions import UnknownMethodException

appium/webdriver/extensions/applications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
try:
1717
from typing import Self
18-
except ImportError:
18+
except (ImportError, AttributeError):
1919
from typing_extensions import Self
2020

2121
from selenium.common.exceptions import InvalidArgumentException, UnknownMethodException

appium/webdriver/extensions/clipboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
try:
1919
from typing import Self
20-
except ImportError:
20+
except (ImportError, AttributeError):
2121
from typing_extensions import Self
2222

2323
from selenium.common.exceptions import UnknownMethodException

appium/webdriver/extensions/execute_mobile_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
try:
1818
from typing import Self
19-
except ImportError:
19+
except (ImportError, AttributeError):
2020
from typing_extensions import Self
2121

2222
from appium.protocols.webdriver.can_execute_scripts import CanExecuteScripts

appium/webdriver/extensions/keyboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
try:
1818
from typing import Self
19-
except ImportError:
19+
except (ImportError, AttributeError):
2020
from typing_extensions import Self
2121

2222
from selenium.common.exceptions import UnknownMethodException

0 commit comments

Comments
 (0)