Skip to content

Commit 7a7ef28

Browse files
committed
typechecking: mypy -> ty
1 parent a0fb1e7 commit 7a7ef28

File tree

4 files changed

+35
-160
lines changed

4 files changed

+35
-160
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ DEFAULT_GOAL := ci
33
.PHONY: ci
44
ci: check format-check test
55

6-
.PHONY: venv
7-
venv:
6+
.venv: uv.lock pyproject.toml
7+
rm -rf .venv
88
uv sync
99

10+
.PHONY: venv
11+
venv: .venv
12+
1013
.PHONY: clean
1114
clean:
1215
rm -rf .venv
@@ -28,4 +31,4 @@ format-check:
2831

2932
.PHONY: check
3033
check: venv
31-
uv run mypy src/flareio tests
34+
uv run ty check

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@ build-backend = "uv_build"
3737
[dependency-groups]
3838
dev = [
3939
"pytest>=8.3.2",
40-
"mypy>=1.11.1",
4140
"ruff>=0.15.0",
4241
"requests-mock>=1.12.1",
4342
"types-requests>=2.32.0.20240712",
4443
"pip>=26",
44+
"ty>=0.0.15",
4545
]
4646

4747
[tool.ruff.lint]
4848
extend-select = [
4949
"I",
50+
"ANN",
5051
"C411",
5152
"C413",
5253
"C414",

src/flareio/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _create_retry() -> Retry:
100100

101101
# Support for urllib3 < 2.X
102102
if hasattr(retry, "backoff_max"):
103-
retry.backoff_max = 15
103+
setattr(retry, "backoff_max", 15)
104104

105105
return retry
106106

0 commit comments

Comments
 (0)