Skip to content

Commit

Permalink
add ellipsis to incomplete class __getattr__
Browse files Browse the repository at this point in the history
I'm fairly certain this is required, because I tried to follow this documentation by omitting it, just now, and got a syntax error.
  • Loading branch information
wyattscarpenter authored May 19, 2024
1 parent 006d361 commit c5736d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/stubs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ annotated function ``bar()``::
def __getattr__(name: str) -> Any: ... # incomplete

class Foo:
def __getattr__(self, name: str) -> Any: # incomplete
def __getattr__(self, name: str) -> Any: ... # incomplete
x: int
y: str

Expand Down

0 comments on commit c5736d2

Please sign in to comment.