Skip to content

Commit

Permalink
fix type annotation in init.rst example (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinevue authored and hynek committed Jan 11, 2022
1 parent a4e0cb2 commit 835d815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/init.rst
Expand Up @@ -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.
Expand Down

0 comments on commit 835d815

Please sign in to comment.