fix type annotation in init.rst example (#905)

This commit is contained in:
Laurent Kadian 2022-01-10 23:58:47 -05:00 committed by GitHub
parent 5f36ba9b89
commit 9727008fd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ That said, and as pointed out in the beginning of the chapter, a better approach
client: WebClient
@classmethod
def from_token(cls, token: str) -> SomeClass:
def from_token(cls, token: str) -> "APIClient":
return cls(client=WebClient(token))
This makes the class more testable.