Skip to content

Commit 29dd486

Browse files
lkadianhynek
authored andcommitted
fix type annotation in init.rst example (#905)
1 parent a336ab4 commit 29dd486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ That said, and as pointed out in the beginning of the chapter, a better approach
478478
client: WebClient
479479

480480
@classmethod
481-
def from_token(cls, token: str) -> SomeClass:
481+
def from_token(cls, token: str) -> "APIClient":
482482
return cls(client=WebClient(token))
483483

484484
This makes the class more testable.

0 commit comments

Comments
 (0)