summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--__builtins__.pyi6
-rw-r--r--pyproject.toml4
2 files changed, 10 insertions, 0 deletions
diff --git a/__builtins__.pyi b/__builtins__.pyi
new file mode 100644
index 000000000..d03460554
--- /dev/null
+++ b/__builtins__.pyi
@@ -0,0 +1,6 @@
+from twisted.web.http import Request
+
+__request__: Request
+
+def _(string: str) -> str: ...
+def _n(string: str) -> str: ...
diff --git a/pyproject.toml b/pyproject.toml
index beec7960a..8b65e52dc 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -58,3 +58,7 @@ extend-function-names = ["_n"]
"deluge/**/gtkui.py" = ["E402"]
"deluge/plugins/Stats/deluge_stats/graph.py" = ["E402"]
"deluge/ui/gtk3/*.py" = ["E402"]
+
+[tool.pyright]
+reportMissingImports = "information"
+reportMissingModuleSource = "information"