[4/9] gdb: pyproject.toml: set pyright typeCheckingMode = "strict"

Message ID 20230223221830.499934-5-simon.marchi@efficios.com
State Committed
Commit 9f353051dee5262914ea33785896c6df3978adf7
Series Add typing annotations to gdbarch*.py and make-target-delegates.py |

Commit Message

Simon Marchi Feb. 23, 2023, 10:18 p.m. UTC
  From: Simon Marchi <simon.marchi@polymtl.ca>

While working on other projects, I found the pyright type checker very
helpful when editing Python code.  I don't think I have to explain the
advantages of type checking to a crowd used to C/C++.

Setting typeCheckingMode to "strict" makes pyright flag a bit more type
issues than the default of "basic".

Change-Id: I38818ec59f7f73c2ab020cc9226286cdd485abc7
 gdb/pyproject.toml | 3 +++
 1 file changed, 3 insertions(+)


diff --git a/gdb/pyproject.toml b/gdb/pyproject.toml
index 58ed2f9d5564..4469f1cd61df 100644
--- a/gdb/pyproject.toml
+++ b/gdb/pyproject.toml
@@ -1,2 +1,5 @@ 
 include = "\\.py(\\.in)?$"
+typeCheckingMode = "strict"