@@ -26,11 +26,14 @@ classifiers = [
2626 " Programming Language :: Python :: 3.14" ,
2727]
2828dependencies = [
29- " urllib3[socks]>=2.6.0,<3.0 " ,
29+ " certifi>=2025.10.5 " ,
3030 " trio>=0.31.0,<1.0" ,
3131 " trio-websocket>=0.12.2,<1.0" ,
32- " certifi>=2025.10.5" ,
32+ " trio-typing>=0.10.0" ,
33+ " types-certifi>=2021.10.8.3" ,
34+ " types-urllib3>=1.26.25.14" ,
3335 " typing_extensions>=4.15.0,<5.0" ,
36+ " urllib3[socks]>=2.6.0,<3.0" ,
3437 " websocket-client>=1.8.0,<2.0" ,
3538]
3639
@@ -48,10 +51,6 @@ lint = [
4851]
4952typecheck = [
5053 " mypy==1.19.1" ,
51- " types-urllib3==1.26.25.14" ,
52- " types-certifi==2021.10.8.3" ,
53- " trio-typing==0.10.0" ,
54- " trio-websocket>=0.12.2,<1.0" ,
5554]
5655validate = [
5756 " validate-pyproject==0.24.1" ,
@@ -111,14 +110,11 @@ testpaths = ["test"]
111110# mypy global options
112111[tool .mypy ]
113112exclude = " selenium/webdriver/common/devtools"
114- # The aim in future here is we would be able to turn (most) of these flags on, however the typing technical
115- # debt is quite colossal right now. For now we should maybe get everything working with the config here
116- # then look at going after partially or completely untyped defs as a phase-2.
117- files = " selenium"
113+ # The aim in future is we would be able to turn (most) of these flags on
118114# warn about per-module sections in the config file that do not match any files processed.
119115warn_unused_configs = true
120116# disallows subclassing of typing.Any.
121- disallow_subclassing_any = false
117+ disallow_subclassing_any = true
122118# disallow usage of generic types that do not specify explicit type parameters.
123119disallow_any_generics = false
124120# disallow calling functions without type annotations from functions that have type annotations.
@@ -132,7 +128,7 @@ check_untyped_defs = false
132128# reports an error whenever a function with type annotations is decorated with a decorator without annotations.
133129disallow_untyped_decorators = false
134130# changes the treatment of arguments with a default value of None by not implicitly making their type `typing.Optional`.
135- no_implicit_optional = false
131+ no_implicit_optional = true
136132# warns about casting an expression to it's inferred type.
137133warn_redundant_casts = true
138134# warns about unneeded `# type: ignore` comments.
0 commit comments