Skip to content

Commit 4bf6493

Browse files
committed
lint fixes
1 parent 71c11b3 commit 4bf6493

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

expense/activities.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
from typing import Optional
2+
13
import httpx
24
from temporalio import activity
35
from temporalio.exceptions import ApplicationError
46

57
from expense import EXPENSE_SERVER_HOST_PORT
68

79
# Module-level HTTP client, managed by worker lifecycle
8-
_http_client: httpx.AsyncClient | None = None
10+
_http_client: Optional[httpx.AsyncClient] = None
911

1012

1113
async def initialize_http_client() -> None:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ build-backend = "hatchling.build"
133133
[tool.poe.tasks]
134134
format = [{cmd = "uv run black ."}, {cmd = "uv run isort ."}]
135135
lint = [{cmd = "uv run black --check ."}, {cmd = "uv run isort --check-only ."}, {ref = "lint-types" }]
136-
lint-types = "uv run mypy --check-untyped-defs --namespace-packages ."
136+
lint-types = "uv run mypy --python-version=3.9 --check-untyped-defs --namespace-packages ."
137137
test = "uv run pytest"
138138

139139
[tool.pytest.ini_options]
@@ -149,6 +149,7 @@ skip_gitignore = true
149149
[tool.mypy]
150150
ignore_missing_imports = true
151151
namespace_packages = true
152+
exclude = [".venv"]
152153

153154
[[tool.mypy.overrides]]
154155
module = "aiohttp.*"

0 commit comments

Comments
 (0)