mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-18 06:19:47 +08:00
Annotate known magic-method return types (#9131)
This commit is contained in:
@@ -9,4 +9,4 @@ class Errors:
|
||||
@property
|
||||
def deep_errors(self): ...
|
||||
def for_object(self, key): ...
|
||||
def __len__(self): ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
@@ -17,4 +17,4 @@ class ValidationErrorCollection:
|
||||
@property
|
||||
def size(self): ...
|
||||
def __getitem__(self, index): ...
|
||||
def __len__(self): ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user