Skip to content

Minor documentation fixes #8700

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 4 commits into from
Apr 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion docs/source/command_line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ of the above sections.
.. option:: --allow-redefinition

By default, mypy won't allow a variable to be redefined with an
unrelated type. This flag enables redefinion of a variable with an
unrelated type. This flag enables redefinition of a variable with an
arbitrary type *in some contexts*: only redefinitions within the
same block and nesting depth as the original definition are allowed.
Example where this can be useful:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/common_issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ flagged as an error.
e.g. the :py:func:`pow` builtin returns ``Any`` (see `typeshed issue 285
<https://github.com/python/typeshed/issues/285>`_ for the reason).

- **:py:meth:`__init__ <object.__init__>` method has no annotated
- :py:meth:`__init__ <object.__init__>` **method has no annotated
arguments or return type annotation.** :py:meth:`__init__ <object.__init__>`
is considered fully-annotated **if at least one argument is annotated**,
while mypy will infer the return type as ``None``.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/extending_mypy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Configuring mypy to use plugins

Plugins are Python files that can be specified in a mypy
:ref:`config file <config-file>` using one of the two formats: relative or
absolute path to the plugin to the plugin file, or a module name (if the plugin
absolute path to the plugin file, or a module name (if the plugin
is installed using ``pip install`` in the same virtual environment where mypy
is running). The two formats can be mixed, for example:

Expand Down
2 changes: 1 addition & 1 deletion docs/source/final_attrs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ override a read-only property:
class Derived(Base):
ID: Final = 1 # OK

Declaring a name as final only guarantees that the name wll not be re-bound
Declaring a name as final only guarantees that the name will not be re-bound
to another value. It doesn't make the value immutable. You can use immutable ABCs
and containers to prevent mutating such values:

Expand Down