docs: typing.Self, fix typo (GH-94771)

* fix typo - double spelled word 'use'

* change methods names to the infinitive form
(cherry picked from commit 90a6e56e56)

Co-authored-by: Max Zhenzhera <59729293+maxzhenzhera@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-07-12 11:17:06 -07:00 committed by GitHub
parent cdd0cabf92
commit 7c185017a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -569,7 +569,7 @@ def Self(self, parameters):
from typing import Self
class Foo:
def returns_self(self) -> Self:
def return_self(self) -> Self:
...
return self