-
-
Notifications
You must be signed in to change notification settings - Fork 107
NewType handling #45
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
NewType handling #45
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs further discussion.
@@ -2,14 +2,15 @@ | |||
import pytest | |||
import sys | |||
import textwrap | |||
from typing import ( | |||
Any, AnyStr, Callable, Dict, Generic, Mapping, Optional, Pattern, Tuple, TypeVar, Union, Type) | |||
from typing import Any, AnyStr, Callable, Dict, Generic, \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the old import style.
@@ -69,6 +70,7 @@ class Slotted: | |||
(Callable[[T], T], ':py:data:`~typing.Callable`\\[\\[\\~T], \\~T]'), | |||
(Pattern, ':py:class:`~typing.Pattern`\\[:py:data:`~typing.AnyStr`]'), | |||
(Pattern[str], ':py:class:`~typing.Pattern`\\[:py:class:`str`]'), | |||
(Z, ':py:class:`~typing.NewType.Z`\\[:py:class:`float`]'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this is the best way to render these?
I merged another PR #66 which resolves this. Thanks for the effort though! |
Fixes #41