-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
Update typing comments and add py.typed for PEP-561 compliance #320
Update typing comments and add py.typed for PEP-561 compliance #320
Conversation
0cb7d12
to
77f9561
Compare
This looks great! Any estimate on when it might make it in? I'm stubbing what I need right now but it would great to have the full type annotations. |
6106458
to
a9996e0
Compare
a9996e0
to
c42734f
Compare
Hello people, is there any chance we can get this forward? |
Thanks! |
@@ -13,7 +14,7 @@ | |||
from .tz import UTC | |||
|
|||
|
|||
def parse(text, **options): | |||
def parse(text, **options): # type: (str, **typing.Any) -> str |
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.
Is the return type really str
? I am not familiar with the pendulum code base, but this looks suspicious to me.
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.
I believe the correct return type is typing.Union[pendulum.Date, pendulum.Time, pendulum.Duration]
.
No description provided.