create stub for __main__ (#5354)

* create stub for __main__

* exclude from pyright, like all other __getattr__ incomplete stubs
This commit is contained in:
Akuli
2021-05-06 18:57:33 +03:00
committed by GitHub
parent e66b7fa660
commit 97101b1d2c
3 changed files with 5 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
],
"exclude": [
"**/@python2",
"stdlib/__main__.pyi",
"stdlib/encodings",
"stdlib/sqlite3/dbapi2.pyi",
"stdlib/tkinter",

View File

@@ -1,4 +1,5 @@
__future__: 2.7
__main__: 2.7
_ast: 3.6
_bisect: 2.7
_bootlocale: 3.6

3
stdlib/__main__.pyi Normal file
View File

@@ -0,0 +1,3 @@
from typing import Any
def __getattr__(name: str) -> Any: ...