Skip to content

Commit

Permalink
Better example of when to include all possible elements in __all__
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <[email protected]>
  • Loading branch information
rchen152 and JelleZijlstra authored Jul 26, 2024
1 parent 0221a12 commit 17cd909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/writing_stubs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ A stub file should contain an ``__all__`` variable if and only if it is also
present at runtime. In that case, the contents of ``__all__`` should be
identical in the stub and at runtime. If the runtime dynamically adds
or removes elements (for example if certain functions are only available on
some platforms), include all possible elements in the stubs.
some system configurations), include all possible elements in the stubs.

Stub-Only Objects
-----------------
Expand Down

0 comments on commit 17cd909

Please sign in to comment.