Skip to content
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

Fix typos in running_mypy.rst #10794

Merged
merged 3 commits into from Jul 10, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/running_mypy.rst
Expand Up @@ -307,7 +307,7 @@ this error, try:
or by using the ``MYPYPATH`` environment variable.

Note: if the module you are trying to import is actually a *submodule* of
some package, you should specific the directory containing the *entire* package.
some package, you should specify the directory containing the *entire* package.
For example, suppose you are trying to add the module ``foo.bar.baz``
which is located at ``~/foo-project/src/foo/bar/baz.py``. In this case,
you must run ``mypy ~/foo-project/src`` (or set the ``MYPYPATH`` to
Expand Down Expand Up @@ -339,7 +339,7 @@ the former has type hints and the latter does not. We run
:option:`mypy -m mycode.foo <mypy -m>` and mypy discovers that ``mycode.foo`` imports
``mycode.bar``.

How do we want mypy to type check ``mycode.bar``? Mypy's behaviour here is
How do we want mypy to type check ``mycode.bar``? Mypy's behavior here is
kainjow marked this conversation as resolved.
Show resolved Hide resolved
configurable -- although we **strongly recommend** using the default --
by using the :option:`--follow-imports <mypy --follow-imports>` flag. This flag
accepts one of four string values:
Expand Down