Skip to content
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
4 changes: 2 additions & 2 deletions docs/source/command_line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ definitions or calls.

.. option:: --untyped-calls-exclude

This flag allows to selectively disable :option:`--disallow-untyped-calls`
This flag allows one to selectively disable :option:`--disallow-untyped-calls`
for functions and methods defined in specific packages, modules, or classes.
Note that each exclude entry acts as a prefix. For example (assuming there
are no type annotations for ``third_party_lib`` available):
Expand Down Expand Up @@ -562,7 +562,7 @@ potentially problematic or redundant in some way.

.. option:: --deprecated-calls-exclude

This flag allows to selectively disable :ref:`deprecated<code-deprecated>` warnings
This flag allows one to selectively disable :ref:`deprecated<code-deprecated>` warnings
for functions and methods defined in specific packages, modules, or classes.
Note that each exclude entry acts as a prefix. For example (assuming ``foo.A.func`` is deprecated):

Expand Down
4 changes: 2 additions & 2 deletions docs/source/error_code_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,8 @@ Warn about top level await expressions [top-level-await]
This error code is separate from the general ``[syntax]`` errors, because in
some environments (e.g. IPython) a top level ``await`` is allowed. In such
environments a user may want to use ``--disable-error-code=top-level-await``,
that allows to still have errors for other improper uses of ``await``, for
example:
which allows one to still have errors for other improper uses of ``await``,
for example:

.. code-block:: python
Expand Down
6 changes: 3 additions & 3 deletions docs/source/mypy_daemon.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,16 @@ command.
Statically inspect expressions
******************************

The daemon allows to get declared or inferred type of an expression (or other
The daemon allows one to get the declared or inferred type of an expression (or other
information about an expression, such as known attributes or definition location)
using ``dmypy inspect LOCATION`` command. The location of the expression should be
using the ``dmypy inspect LOCATION`` command. The location of the expression should be
specified in the format ``path/to/file.py:line:column[:end_line:end_column]``.
Both line and column are 1-based. Both start and end position are inclusive.
These rules match how mypy prints the error location in error messages.

If a span is given (i.e. all 4 numbers), then only an exactly matching expression
is inspected. If only a position is given (i.e. 2 numbers, line and column), mypy
will inspect all *expressions*, that include this position, starting from the
will inspect all expressions that include this position, starting from the
innermost one.

Consider this Python code snippet:
Expand Down
2 changes: 1 addition & 1 deletion mypy/traverser.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ class ExtendedTraverserVisitor(TraverserVisitor):
In addition to the base traverser it:
* has visit_ methods for leaf nodes
* has common method that is called for all nodes
* allows to skip recursing into a node
* allows skipping recursing into a node
Note that this traverser still doesn't visit some internal
mypy constructs like _promote expression and Var.
Expand Down
Loading