Add images

This commit is contained in:
Shunsuke Shibayama 2022-12-12 23:49:12 +09:00
parent 0dc178ab91
commit cc3bf959ab
5 changed files with 11 additions and 1 deletions

View File

@ -29,8 +29,14 @@ However, pype is superior to them in the following points:
* Performance: pype can inspect Python scripts on average 100 times faster than pytype. This is largely due to the fact that pype is implemented in Rust, whereas pytype is implemented in Python. * Performance: pype can inspect Python scripts on average 100 times faster than pytype. This is largely due to the fact that pype is implemented in Rust, whereas pytype is implemented in Python.
![performance](extension/images/performance.png)
* Detailed analysis * Detailed analysis
pype can do more than the usual type testing. For example, it can detect out-of-bounds accesses to lists and accesses to nonexistent keys in dicts. pype can do more than the usual type testing. For example, it can detect out-of-bounds accesses to lists and accesses to nonexistent keys in dicts.
* Reporting quality: While pytype's error reports are crude, showing only that an error has occurred, pype shows where the error occurred and provides clear error messages. ![analysis](extension/images/analysis.png)
* Reports readability: While pytype's error reports are crude, showing only that an error has occurred, pype shows where the error occurred and provides clear error messages.
![reports](extension/images/reports.png)

BIN
images/analysis.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
images/performance.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

BIN
images/reports.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

View File

@ -22,7 +22,11 @@ class C:
x = 1 + "a" x = 1 + "a"
dic = {"a": 1, "b": 2} dic = {"a": 1, "b": 2}
print(dic["c"]) print(dic["c"])
a = [1, 2, 3] a = [1, 2, 3]
print(a[4]) print(a[4])