File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ of the above sections.
468
468
.. option :: --allow-redefinition
469
469
470
470
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
472
472
arbitrary type *in some contexts *: only redefinitions within the
473
473
same block and nesting depth as the original definition are allowed.
474
474
Example where this can be useful:
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ flagged as an error.
72
72
e.g. the :py:func: `pow ` builtin returns ``Any `` (see `typeshed issue 285
73
73
<https://github.com/python/typeshed/issues/285> `_ for the reason).
74
74
75
- - ** :py:meth:`__init__ <object.__init__>` method has no annotated
75
+ - :py:meth: `__init__ <object.__init__> ` ** method has no annotated
76
76
arguments or return type annotation. ** :py:meth: `__init__ <object.__init__> `
77
77
is considered fully-annotated **if at least one argument is annotated **,
78
78
while mypy will infer the return type as ``None ``.
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ Configuring mypy to use plugins
70
70
71
71
Plugins are Python files that can be specified in a mypy
72
72
: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
74
74
is installed using ``pip install `` in the same virtual environment where mypy
75
75
is running). The two formats can be mixed, for example:
76
76
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ override a read-only property:
138
138
class Derived (Base ):
139
139
ID : Final = 1 # OK
140
140
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
142
142
to another value. It doesn't make the value immutable. You can use immutable ABCs
143
143
and containers to prevent mutating such values:
144
144
You can’t perform that action at this time.
0 commit comments