Skip to content

Commit 7e9b3b2

Browse files
vdusekclaude
andcommitted
docs: use local ty: ignore instead of global override in pyproject.toml
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e7c04d6 commit 7e9b3b2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/02_concepts/code/05_custom_proxy_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async def custom_new_url_function(
1717
async def main() -> None:
1818
async with Actor:
1919
proxy_cfg = await Actor.create_proxy_configuration(
20-
new_url_function=custom_new_url_function,
20+
new_url_function=custom_new_url_function, # ty: ignore[invalid-argument-type]
2121
)
2222

2323
if not proxy_cfg:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ include = [
214214

215215
[tool.ty.overrides.rules]
216216
unresolved-import = "ignore"
217-
invalid-argument-type = "ignore"
218217

219218
[tool.coverage.report]
220219
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:", "assert_never()"]

0 commit comments

Comments
 (0)