basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

infer dunder types

Open KotlinIsland opened this issue 3 years ago • 0 comments

__str__ returns str
__repr__ returns str
__len__ returns int
__del__ returns None
__bool__ returns bool
__bytes__ returns bytes
__format__ returns str
__contains__ returns bool
__complex__ returns complex
__int__ returns int
__float__ returns float
__index__ returns int
__exit__: the three parameters are Optional[Type[BaseException]], Optional[BaseException], and Optional[TracebackType]
__aexit__: same as __exit__

KotlinIsland avatar Sep 06 '22 04:09 KotlinIsland