Skip to content

Commit 6477821

Browse files
committed
[docs] Error codes
1 parent 3b32469 commit 6477821

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,13 @@ example.py:1:14: KTH000 concrete type (`list`, `dict`, `set`, `tuple`) in functi
3838

3939
## Error codes
4040

41-
TODO
41+
Type hints in function **parameters**
42+
43+
Use abstract types instead of concrete ones
44+
45+
| error code | description |
46+
|:----:|:------------|
47+
| KTH101 | Use `Iterable` or `Sequence` instead of `list` |
48+
| KTH102 | Use `Iterable` or `Sequence` instead of `tuple` |
49+
| KTH103 | Use `Iterable` instead of `set` |
50+
| KTH104 | Use `Iterable` instead of `dict` |

0 commit comments

Comments
 (0)