mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
docs: typing.Self, fix typo (GH-94771)
* fix typo - double spelled word 'use' * change methods names to the infinitive form
This commit is contained in:
parent
0c66074e9f
commit
90a6e56e56
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue