Skip to content

Commit 9c86f9b

Browse files
authored
Remove duplicated indefinite articles in doc strings (#11596)
1 parent 761e1b6 commit 9c86f9b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

mypy/checker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5472,7 +5472,7 @@ class Foo(Enum):
54725472
B = 2
54735473
54745474
...and if the expression 'Foo' referred to that enum within the current type context,
5475-
then the expression 'Foo.A' would be a a literal enum. However, if we did 'a = Foo.A',
5475+
then the expression 'Foo.A' would be a literal enum. However, if we did 'a = Foo.A',
54765476
then the variable 'a' would *not* be a literal enum.
54775477
54785478
We occasionally special-case expressions like 'Foo.A' and treat them as a single primitive

mypy/checkexpr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4484,7 +4484,7 @@ def merge_typevars_in_callables_by_name(
44844484
"S", but we treat them as distinct, unrelated typevars. (E.g. they could both have
44854485
distinct ids.)
44864486
4487-
If we pass in both callables into this function, it returns a a list containing two
4487+
If we pass in both callables into this function, it returns a list containing two
44884488
new callables that are identical in signature, but use the same underlying TypeVarType
44894489
for T and S.
44904490

mypy/typeanal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ def analyze_literal_param(self, idx: int, arg: Type, ctx: Context) -> Optional[L
837837
#
838838
# 1. If the user attempts use an explicit Any as a parameter
839839
# 2. If the user is trying to use an enum value imported from a module with
840-
# no type hints, giving it an an implicit type of 'Any'
840+
# no type hints, giving it an implicit type of 'Any'
841841
# 3. If there's some other underlying problem with the parameter.
842842
#
843843
# We report an error in only the first two cases. In the third case, we assume

0 commit comments

Comments
 (0)