Skip to content

Commit 630d0e1

Browse files
moar
1 parent 46e90d6 commit 630d0e1

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

appium/webdriver/extensions/applications.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@
1313
# limitations under the License.
1414
from typing import Any, Dict, Union
1515

16-
try:
17-
from typing import Self
18-
except (ImportError, AttributeError):
19-
from typing_extensions import Self
20-
2116
from selenium.common.exceptions import InvalidArgumentException, UnknownMethodException
17+
from typing_extensions import Self
2218

2319
from appium.protocols.webdriver.can_execute_commands import CanExecuteCommands
2420
from appium.protocols.webdriver.can_execute_scripts import CanExecuteScripts

appium/webdriver/extensions/hw_actions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typing import Optional, Self
15+
from typing import Optional
1616

1717
from selenium.common.exceptions import UnknownMethodException
18+
from typing_extensions import Self
1819

1920
from appium.protocols.webdriver.can_execute_commands import CanExecuteCommands
2021
from appium.protocols.webdriver.can_execute_scripts import CanExecuteScripts

0 commit comments

Comments
 (0)