22.5.0
Features:
- Introduce Y039: Use
strinstead oftyping.Textfor Python 3 stubs. - Teach the Y036 check that
builtins.object(as well as the unqualifiedobject) is acceptable as an annotation for an__(a)exit__method argument. - Teach the Y029 check to emit errors for
__repr__and__str__methods that returnbuiltins.str(as opposed to the unqualifiedstr). - Introduce Y040: Never explicitly inherit from
objectin Python 3 stubs.