Skip to content

Commit

Permalink
Correct note about --disallow-any-generics flag in docs (#18055)
Browse files Browse the repository at this point in the history

Co-authored-by: Jelle Zijlstra <[email protected]>
  • Loading branch information
neuroevolutus and JelleZijlstra authored Oct 26, 2024
1 parent a706914 commit 2d785df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/dynamic_typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ treated as ``Any``:
reveal_type(x[0]) # Revealed type is "Any"
x[0].anything_goes() # OK
You can make mypy warn you about untyped function parameters using the
You can make mypy warn you about missing generic parameters using the
:option:`--disallow-any-generics <mypy --disallow-any-generics>` flag.

Finally, another major source of ``Any`` types leaking into your program is from
Expand Down

0 comments on commit 2d785df

Please sign in to comment.