8000 [WIP] Typeshed support for mypy_extensions.declared_type by sixolet · Pull Request #1230 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

[WIP] Typeshed support for mypy_extensions.declared_type #1230

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

Closed
wants to merge 6 commits into from
Closed
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
4 changes: 3 additions & 1 deletion third_party/2and3/mypy_extensions.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, Type, TypeVar, Optional, Union
from typing import Dict, Type, TypeVar, Union, Callable, Any, Optional
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually when I update such an import list I also alphabetize the names.


_T = TypeVar('_T')

Expand All @@ -15,3 +15,5 @@ def KwArg(type: _T = ...) -> _T: ...
# This type is equivalent to the None type, but the no-op Union is necessary to
# distinguish the None type from the None value.
NoReturn = Union[None] # Deprecated: Use typing.NoReturn instead.

def declared_type(t: Any) -> Callable[[_T], _T]: ...
0