Skip to content

Crossreferences to standard library in mypy docs #7652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 8, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixed dataclasses.dataclass ref, removed ellipsis from optional refs …
…in command_line.rst

Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
  • Loading branch information
hoefling committed Oct 8, 2019
commit 58894fe1d4d8f35c788f7979d66d1360a5cf223a
2 changes: 1 addition & 1 deletion docs/source/additional_features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Caveats/Known Issues
Some functions in the :py:mod:`dataclasses` module, such as :py:func:`~dataclasses.replace` and :py:func:`~dataclasses.asdict`,
have imprecise (too permissive) types. This will be fixed in future releases.

Mypy does not yet recognize aliases of :py:func:`dataclasses.dataclass`, and will
Mypy does not yet recognize aliases of :py:func:`dataclasses.dataclass <dataclasses.dataclass>`, and will
probably never recognize dynamically computed decorators. The following examples
do **not** work:

Expand Down
4 changes: 2 additions & 2 deletions docs/source/command_line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ For more details, see :ref:`no_strict_optional`.

``--no-implicit-optional``
This flag causes mypy to stop treating arguments with a ``None``
default value as having an implicit :py:data:`Optional[...] <typing.Optional>` type.
default value as having an implicit :py:data:`~typing.Optional` type.

For example, by default mypy will assume that the ``x`` parameter
is of type ``Optional[int]`` in the code snippet below since
Expand All @@ -312,7 +312,7 @@ For more details, see :ref:`no_strict_optional`.
print(x)

``--no-strict-optional``
This flag disables strict checking of :py:data:`Optional[...] <typing.Optional>`
This flag disables strict checking of :py:data:`~typing.Optional`
types and ``None`` values. With this option, mypy doesn't
generally check the use of ``None`` values -- they are valid
everywhere. See :ref:`no_strict_optional` for more about this feature.
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy