Skip to content

Commit dc352e9

Browse files
chore: fix some comments (#17615)
1 parent e1d09d3 commit dc352e9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5575,7 +5575,7 @@ def partition_by_callable(
55755575

55765576
if isinstance(typ, TypeVarType):
55775577
# We could do better probably?
5578-
# Refine the the type variable's bound as our type in the case that
5578+
# Refine the type variable's bound as our type in the case that
55795579
# callable() is true. This unfortunately loses the information that
55805580
# the type is a type variable in that branch.
55815581
# This matches what is done for isinstance, but it may be possible to

mypy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ def process_package_roots(
14791479
root = ""
14801480
package_root.append(root)
14811481
options.package_root = package_root
1482-
# Pass the package root on the the filesystem cache.
1482+
# Pass the package root on the filesystem cache.
14831483
fscache.set_package_root(package_root)
14841484

14851485

mypy/server/deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class 'mod.Cls'. This can also refer to an attribute inherited from a
5656
* 'mod.Cls' represents each method in class 'mod.Cls' + the top-level of the
5757
module 'mod'. (To simplify the implementation, there is no location that only
5858
includes the body of a class without the entire surrounding module top level.)
59-
* Trigger '<...>' as a location is an indirect way of referring to to all
59+
* Trigger '<...>' as a location is an indirect way of referring to all
6060
locations triggered by the trigger. These indirect locations keep the
6161
dependency map smaller and easier to manage.
6262

mypy/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def trim_source_line(line: str, max_len: int, col: int, min_width: int) -> tuple
201201
A typical result looks like this:
202202
...some_variable = function_to_call(one_arg, other_arg) or...
203203
204-
Return the trimmed string and the column offset to to adjust error location.
204+
Return the trimmed string and the column offset to adjust error location.
205205
"""
206206
if max_len < 2 * min_width + 1:
207207
# In case the window is too tiny it is better to still show something.

mypyc/external/googletest/src/gtest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@ std::string CodePointToUtf8(UInt32 code_point) {
17841784
return str;
17851785
}
17861786

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

0 commit comments

Comments
 (0)