Skip to content

Remove duplicated indefinite articles in doc strings #11596

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
Nov 23, 2021
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 @@ -5472,7 +5472,7 @@ class Foo(Enum):
B = 2

...and if the expression 'Foo' referred to that enum within the current type context,
then the expression 'Foo.A' would be a a literal enum. However, if we did 'a = Foo.A',
then the expression 'Foo.A' would be a literal enum. However, if we did 'a = Foo.A',
then the variable 'a' would *not* be a literal enum.

We occasionally special-case expressions like 'Foo.A' and treat them as a single primitive
Expand Down
2 changes: 1 addition & 1 deletion mypy/checkexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -4482,7 +4482,7 @@ def merge_typevars_in_callables_by_name(
"S", but we treat them as distinct, unrelated typevars. (E.g. they could both have
distinct ids.)

If we pass in both callables into this function, it returns a a list containing two
If we pass in both callables into this function, it returns a list containing two
new callables that are identical in signature, but use the same underlying TypeVarType
for T and S.

Expand Down
2 changes: 1 addition & 1 deletion mypy/typeanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ def analyze_literal_param(self, idx: int, arg: Type, ctx: Context) -> Optional[L
#
# 1. If the user attempts use an explicit Any as a parameter
# 2. If the user is trying to use an enum value imported from a module with
# no type hints, giving it an an implicit type of 'Any'
# no type hints, giving it an implicit type of 'Any'
# 3. If there's some other underlying problem with the parameter.
#
# We report an error in only the first two cases. In the third case, we assume
Expand Down