curses: make names private that don't exist at runtime (#1308)

And add some missing return types
This commit is contained in:
Jelle Zijlstra
2017-05-23 12:46:05 -07:00
committed by Matthias Kramm
parent 14f7492fe0
commit 48796411ed
2 changed files with 33 additions and 35 deletions

View File

@@ -1,8 +1,6 @@
import _curses
from _curses import * # noqa: F403
# Stubgen imports a python version of has_key only if it's not present
# in _curses (which it is in this stub)
# from .has_key import has_key as has_key
def initscr(): ...
def initscr() -> _curses._CursesWindow: ...
def start_color(): ...
def wrapper(func, *args, **kwds): ...