Skip to content

chore: fix some comments #17615

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

Merged
merged 1 commit into from
Oct 17, 2024
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
2 changes: 1 addition & 1 deletion mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5522,7 +5522,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 @@ -1478,7 +1478,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 @@ -196,7 +196,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
Loading