Change local to type Any and add link to mypy bug.

This commit is contained in:
Guido van Rossum
2016-08-02 10:59:11 -07:00
parent 9debde04e9
commit 2bb6856456

View File

@@ -41,7 +41,10 @@ if sys.version_info < (3,):
class ThreadError(Exception): ...
class local(Any): ...
# TODO: Change to a class with __getattr__ and __setattr__
# once mypy supports universal __setattr__.
# See https://github.com/python/mypy/issues/521
local = None # type: Any
class Thread: