mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
create stub for __main__ (#5354)
* create stub for __main__ * exclude from pyright, like all other __getattr__ incomplete stubs
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
],
|
||||
"exclude": [
|
||||
"**/@python2",
|
||||
"stdlib/__main__.pyi",
|
||||
"stdlib/encodings",
|
||||
"stdlib/sqlite3/dbapi2.pyi",
|
||||
"stdlib/tkinter",
|
||||
|
||||
@@ -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
3
stdlib/__main__.pyi
Normal file
@@ -0,0 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
Reference in New Issue
Block a user