8000 Add a suggestion to CONTRIBUTING.md (#5205) · python/typeshed@fc0db5f · GitHub
[go: up one dir, main page]

Skip to content

Commit fc0db5f

Browse files
Add a suggestion to CONTRIBUTING.md (#5205)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
1 parent fa9d5a5 commit fc0db5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ harmless. This is a strictly better compromise than using the latter
339339
two forms, which would generate false positive errors for correct use
340340
under Python 3.7.4.
341341

342+
When your stub contains if statements for different Python versions,
343+
always put the code for the most recent Python version first.
344+
342345
Note: in its current implementation, typeshed cannot contain stubs for
343346
multiple versions of the same third-party library. Prefer to generate
344347
stubs for the latest version released on PyPI at the time of your

0 commit comments

Comments
 (0)
0