Fix spelling and grammar in some comments (#908)

I'm going to go ahead and land this, I don't think it needs review
This commit is contained in:
Steven Troxler 2023-04-13 14:42:57 -07:00 committed by GitHub
parent f936db240f
commit f0a4d62c3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -706,7 +706,7 @@ class ConvertTypeComments(VisitorBasedCodemodCommand):
# able to extract type information. This is done via mutable state and the
# usual visitor pattern.
# (B) we also manually reach down to the first statement inside of the
# funciton body and aggressively strip type comments from leading
# function body and aggressively strip type comments from leading
# whitespaces
#
# PEP 484 underspecifies how to apply type comments to (non-static)
@ -786,7 +786,7 @@ class ConvertTypeComments(VisitorBasedCodemodCommand):
self,
node: cst.FunctionDef,
) -> None:
"Turn off aggressive type comment removal when we've leaved the header."
"Turn off aggressive type comment removal when we've left the header."
self.aggressively_strip_type_comments = False
def leave_IndentedBlock(