Skip to content

Commit e58e524

Browse files
committed
ty: use an ignore so we notice when the bug is fixed
ref astral-sh/ty#1635
1 parent 9cdfc26 commit e58e524

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,6 @@ exclude = [
236236
"src/svcs/pyramid.py",
237237
"tests/typing/mypy.py",
238238
"tests/typing/pyramid.py",
239-
# Starlette started failing since ty 0.0.0a26 and is nontrivial to fix due to
240-
# the prevalence of private types:
241-
# <https://github.com/Kludex/starlette/blob/49d4de92867cb38a781069701ad57cecab4a1a36/starlette/middleware/__init__.py#L9-L18>.
242-
"src/svcs/starlette.py",
243-
"tests/typing/starlette.py",
244239
]
245240

246241

tests/typing/starlette.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ async def lifespan4(
5555
reg = svcs.Registry()
5656

5757
app = Starlette(
58-
lifespan=lifespan, middleware=[Middleware(svcs.starlette.SVCSMiddleware)]
58+
lifespan=lifespan,
59+
middleware=[Middleware(svcs.starlette.SVCSMiddleware)], # ty: ignore[invalid-argument-type] https://github.com/astral-sh/ty/issues/1635
5960
)
6061

6162
a: int

0 commit comments

Comments
 (0)