diff --git a/README.md b/README.md index dbea3f6..3c80b91 100644 --- a/README.md +++ b/README.md @@ -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](extension/images/performance.png) + * 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. -* 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) diff --git a/images/analysis.png b/images/analysis.png new file mode 100644 index 0000000..5f7cb3c Binary files /dev/null and b/images/analysis.png differ diff --git a/images/performance.png b/images/performance.png new file mode 100644 index 0000000..5df9c45 Binary files /dev/null and b/images/performance.png differ diff --git a/images/reports.png b/images/reports.png new file mode 100644 index 0000000..36c0e8c Binary files /dev/null and b/images/reports.png differ diff --git a/tests/test.py b/tests/test.py index 296acf5..027c18c 100644 --- a/tests/test.py +++ b/tests/test.py @@ -22,7 +22,11 @@ class C: x = 1 + "a" dic = {"a": 1, "b": 2} + + + print(dic["c"]) + a = [1, 2, 3] print(a[4])