File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ from typing import Optional
2+
13import httpx
24from temporalio import activity
35from temporalio .exceptions import ApplicationError
46
57from 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
1113async def initialize_http_client () -> None :
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ build-backend = "hatchling.build"
133133[tool .poe .tasks ]
134134format = [{cmd = " uv run black ." }, {cmd = " uv run isort ." }]
135135lint = [{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 ."
137137test = " uv run pytest"
138138
139139[tool .pytest .ini_options ]
@@ -149,6 +149,7 @@ skip_gitignore = true
149149[tool .mypy ]
150150ignore_missing_imports = true
151151namespace_packages = true
152+ exclude = [" .venv" ]
152153
153154[[tool .mypy .overrides ]]
154155module = " aiohttp.*"
You can’t perform that action at this time.
0 commit comments