Skip to content

Commit

Permalink
chore: fix some comments (python#17615)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghuyiyuan authored Oct 17, 2024
1 parent e1d09d3 commit dc352e9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5575,7 +5575,7 @@ def partition_by_callable(

if isinstance(typ, TypeVarType):
# We could do better probably?
# Refine the the type variable's bound as our type in the case that
# Refine the type variable's bound as our type in the case that
# callable() is true. This unfortunately loses the information that
# the type is a type variable in that branch.
# This matches what is done for isinstance, but it may be possible to
Expand Down
2 changes: 1 addition & 1 deletion mypy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ def process_package_roots(
root = ""
package_root.append(root)
options.package_root = package_root
# Pass the package root on the the filesystem cache.
# Pass the package root on the filesystem cache.
fscache.set_package_root(package_root)


Expand Down
2 changes: 1 addition & 1 deletion mypy/server/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class 'mod.Cls'. This can also refer to an attribute inherited from a
* 'mod.Cls' represents each method in class 'mod.Cls' + the top-level of the
module 'mod'. (To simplify the implementation, there is no location that only
includes the body of a class without the entire surrounding module top level.)
* Trigger '<...>' as a location is an indirect way of referring to to all
* Trigger '<...>' as a location is an indirect way of referring to all
locations triggered by the trigger. These indirect locations keep the
dependency map smaller and easier to manage.
Expand Down
2 changes: 1 addition & 1 deletion mypy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def trim_source_line(line: str, max_len: int, col: int, min_width: int) -> tuple
A typical result looks like this:
...some_variable = function_to_call(one_arg, other_arg) or...
Return the trimmed string and the column offset to to adjust error location.
Return the trimmed string and the column offset to adjust error location.
"""
if max_len < 2 * min_width + 1:
# In case the window is too tiny it is better to still show something.
Expand Down
2 changes: 1 addition & 1 deletion mypyc/external/googletest/src/gtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,7 @@ std::string CodePointToUtf8(UInt32 code_point) {
return str;
}

// The following two functions only make sense if the the system
// The following two functions only make sense if the system
// uses UTF-16 for wide string encoding. All supported systems
// with 16 bit wchar_t (Windows, Cygwin, Symbian OS) do use UTF-16.

Expand Down

0 comments on commit dc352e9

Please sign in to comment.