|
|
|
|
|
by smilliken
257 days ago
|
|
The best kind of documentation is the kind you can trust is accurate. Type defs wouldn't be close to as useful if you didn't really trust them. Similarly, doctests are some of the most useful documentation because you can be sure they are accurate. |
|
Python’s type hints are in the second category.