Files
typeshed/stdlib
Hong Xu 6458a41568 Use generic self for socketserver.BaseServer.__enter__ (#4882)
This is to guarantee the classes that inherit `BaseServer` (e.g.,
`HTTPServer`) to have a proper return type of `__enter__`. For example,

    with HTTPServer() as httpd:
        pass

`httpd` should be of type `HTTPServer`, not `BaseServer`.
2020-12-31 23:20:20 -08:00
..