Skip to content

Fix errors discovered by running typeshed check on Windows #3456

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
Nov 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stdlib/2and3/formatter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# and https://github.com/python/cpython/blob/master/Lib/formatter.py
from typing import Any, IO, List, Optional, Tuple

AS_IS = None
AS_IS: None
_FontType = Tuple[str, bool, bool, bool]
_StylesType = Tuple[Any, ...]

Expand Down
8 changes: 3 additions & 5 deletions stdlib/3/asyncio/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,9 @@ if sys.version_info >= (3, 7):
run as run,
)


# TODO: It should be possible to instantiate these classes, but mypy
# currently disallows this.
# See https://github.com/python/mypy/issues/1843
SelectorEventLoop: Type[AbstractEventLoop]
if sys.platform != 'win32':
# This is already imported above on Windows.
SelectorEventLoop: Type[AbstractEventLoop]

# TODO: AbstractChildWatcher (UNIX only)

Expand Down