diff --git a/pyrightconfig.json b/pyrightconfig.json index 09a3d5398..622b586c7 100644 --- a/pyrightconfig.json +++ b/pyrightconfig.json @@ -6,6 +6,7 @@ ], "exclude": [ "**/@python2", + "stdlib/__main__.pyi", "stdlib/encodings", "stdlib/sqlite3/dbapi2.pyi", "stdlib/tkinter", diff --git a/stdlib/VERSIONS b/stdlib/VERSIONS index 63f46c6ba..d4c475561 100644 --- a/stdlib/VERSIONS +++ b/stdlib/VERSIONS @@ -1,4 +1,5 @@ __future__: 2.7 +__main__: 2.7 _ast: 3.6 _bisect: 2.7 _bootlocale: 3.6 diff --git a/stdlib/__main__.pyi b/stdlib/__main__.pyi new file mode 100644 index 000000000..e27843e53 --- /dev/null +++ b/stdlib/__main__.pyi @@ -0,0 +1,3 @@ +from typing import Any + +def __getattr__(name: str) -> Any: ...