From 489220dc74b5afa45f5ad3f94114baed7d814f31 Mon Sep 17 00:00:00 2001 From: Brent Yi Date: Tue, 10 Oct 2023 12:14:21 +0800 Subject: [PATCH] Suppress mypy var-annotated --- examples/17_background_composite.py | 1 - pyproject.toml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/17_background_composite.py b/examples/17_background_composite.py index caa422e9c..c839937ef 100644 --- a/examples/17_background_composite.py +++ b/examples/17_background_composite.py @@ -1,4 +1,3 @@ -# mypy: disable-error-code="var-annotated" """Depth compositing In this example, we show how to use a background image with depth compositing. This can diff --git a/pyproject.toml b/pyproject.toml index ca29e0cc7..59b97af80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,6 +67,7 @@ python_version = "3.8" ignore_missing_imports = true warn_unused_configs = true exclude="viser/client/.nodeenv" +disable_error_code="var-annotated" # Common source of mypy + numpy false positives. [tool.pyright] exclude = ["./docs/**/*", "./examples/assets/**/*", "./src/viser/client/.nodeenv", "./build"]