Skip to content

fix: add missing curses.has_key stub #8421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2022
Merged

fix: add missing curses.has_key stub #8421

merged 2 commits into from
Jul 28, 2022

Conversation

kkirsche
Copy link
Contributor

@kkirsche kkirsche commented Jul 28, 2022

X-Ref: #4545

This adds the curses.has_key.pyi stub to complete the curses module (in terms of missing stub files) as outlined in #4545.

Source:
https://github.com/python/cpython/blob/main/Lib/curses/has_key.py

EDIT:
include source file

@AlexWaygood
Copy link
Member

It imports _curses, and _curses doesn't exist on Windows, so you'll have to do the same thing as in #8420. You should add it to this section of the allowlist:

# Modules that rely on _curses
curses
curses.ascii
curses.panel
curses.textpad

@kkirsche
Copy link
Contributor Author

Fixed via 2664310

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit 177bbf7 into python:master Jul 28, 2022
@kkirsche kkirsche deleted the curses/has-key branch July 28, 2022 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants