Skip to content

Conversation

@mkurek
Copy link

@mkurek mkurek commented Dec 21, 2016

Improve operator methods for dateutil.relativedelta stubs:

Improve operator methods for dateutil.relativedelta stubs:
* `__add__` operator method could return other types than `relativedelta` (`datetime.date` or `datetime.datetime`)
* use specific types of operators args instead of Any
* mypy currently does not handle `Union` in op methods (see python/mypy#2129, python/mypy#1442, python/mypy#1264 for details), so I've overloaded it directly
@ambv ambv merged commit 43f18bc into python:master Dec 28, 2016
@ambv
Copy link
Contributor

ambv commented Dec 28, 2016

✨ 🍰 ✨ Thanks!

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