Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97101b1

Browse files
authored
create stub for __main__ (#5354)
* create stub for __main__ * exclude from pyright, like all other __getattr__ incomplete stubs
1 parent e66b7fa commit 97101b1

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

pyrightconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
],
77
"exclude": [
88
"**/@python2",
9+
"stdlib/__main__.pyi",
910
"stdlib/encodings",
1011
"stdlib/sqlite3/dbapi2.pyi",
1112
"stdlib/tkinter",

stdlib/VERSIONS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
__future__: 2.7
2+
__main__: 2.7
23
_ast: 3.6
34
_bisect: 2.7
45
_bootlocale: 3.6

stdlib/__main__.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from typing import Any
2+
3+
def __getattr__(name: str) -> Any: ...

0 commit comments

Comments
 (0)