File tree Expand file tree Collapse file tree 4 files changed +79
-12
lines changed Expand file tree Collapse file tree 4 files changed +79
-12
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ check: check-lint check-format
1111.PHONY : check-lint
1212check-lint :
1313 uv run ruff check .
14+ uv run mypy appium
1415
1516.PHONY : check-format
1617check-format :
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- from typing import Optional , Protocol
15+ from typing import Optional
1616
1717from selenium .webdriver .remote .switch_to import SwitchTo
1818from typing_extensions import Self
1919
20- from appium .protocols .webdriver .can_execute_commands import CanExecuteCommands
21-
2220from .mobilecommand import MobileCommand
2321
2422
25- class HasDriver (Protocol ):
26- _driver : CanExecuteCommands
27-
28-
29- class MobileSwitchTo (SwitchTo , HasDriver ):
23+ class MobileSwitchTo (SwitchTo ):
3024 def context (self , context_name : Optional [str ]) -> Self :
3125 """Sets the context for the current session.
3226 Passing `None` is equal to switching to native context.
Original file line number Diff line number Diff line change @@ -13,19 +13,20 @@ dynamic = [
1313requires-python = " >=3.9"
1414dependencies = [
1515 " selenium>=4.26,<5.0" ,
16- " typing-extensions~=4.13.2 " ,
16+ " typing-extensions~=4.13" ,
1717]
1818
1919[tool .uv ]
2020dev-dependencies = [
2121 " httpretty~=1.1" ,
2222 " mock~=5.2" ,
23+ " mypy~=1.17" ,
2324 " pre-commit~=4.2" ,
2425 " pytest~=8.4" ,
2526 " pytest-cov~=6.2" ,
2627 " pytest-xdist~=3.8" ,
2728 " python-dateutil~=2.9" ,
28- " ruff~=0.12.7 " ,
29+ " ruff~=0.12" ,
2930 " types-python-dateutil~=2.9" ,
3031]
3132
You can’t perform that action at this time.
0 commit comments