diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-26 20:13:58 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-02-27 13:28:32 -0500 |
commit | 9f353051dee5262914ea33785896c6df3978adf7 (patch) | |
tree | d0f32d2d051f5927a7c318d4fc17608d4d4e2e2e /gdb | |
parent | fbbe9eb8b51e98d57cf243a109cfc57eb9bfbeeb (diff) | |
download | binutils-9f353051dee5262914ea33785896c6df3978adf7.zip binutils-9f353051dee5262914ea33785896c6df3978adf7.tar.gz binutils-9f353051dee5262914ea33785896c6df3978adf7.tar.bz2 |
gdb: pyproject.toml: set pyright typeCheckingMode = "strict"
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
Reviewed-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/pyproject.toml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/pyproject.toml b/gdb/pyproject.toml index 58ed2f9..4469f1c 100644 --- a/gdb/pyproject.toml +++ b/gdb/pyproject.toml @@ -1,2 +1,5 @@ [tool.black] include = "\\.py(\\.in)?$" + +[tool.pyright] +typeCheckingMode = "strict" |