Skip to content

Commit 833fc2c

Browse files
authored
Minor documentation fixes (#8700)
1 parent 69eb6fe commit 833fc2c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/source/command_line.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ of the above sections.
468468
.. option:: --allow-redefinition
469469

470470
By default, mypy won't allow a variable to be redefined with an
471-
unrelated type. This flag enables redefinion of a variable with an
471+
unrelated type. This flag enables redefinition of a variable with an
472472
arbitrary type *in some contexts*: only redefinitions within the
473473
same block and nesting depth as the original definition are allowed.
474474
Example where this can be useful:

docs/source/common_issues.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ flagged as an error.
7272
e.g. the :py:func:`pow` builtin returns ``Any`` (see `typeshed issue 285
7373
<https://github.com/python/typeshed/issues/285>`_ for the reason).
7474

75-
- **:py:meth:`__init__ <object.__init__>` method has no annotated
75+
- :py:meth:`__init__ <object.__init__>` **method has no annotated
7676
arguments or return type annotation.** :py:meth:`__init__ <object.__init__>`
7777
is considered fully-annotated **if at least one argument is annotated**,
7878
while mypy will infer the return type as ``None``.

docs/source/extending_mypy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Configuring mypy to use plugins
7070

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

docs/source/final_attrs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ override a read-only property:
138138
class Derived(Base):
139139
ID: Final = 1 # OK
140140
141-
Declaring a name as final only guarantees that the name wll not be re-bound
141+
Declaring a name as final only guarantees that the name will not be re-bound
142142
to another value. It doesn't make the value immutable. You can use immutable ABCs
143143
and containers to prevent mutating such values:
144144

0 commit comments

Comments
 (0)