We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
An error will be given if attempting to subtract an offset from a datetime.date
datetime.date
Should be the Union of the two
Union
The text was updated successfully, but these errors were encountered:
Please provide an example that illustrates a type checker showing an error.
Sorry, something went wrong.
from datetime import date from pandas.tseries.offsets import Day x = date.today() - Day()
test_case.py:4: error: No overload variant of "sub" of "date" matches argument type "Day" test_case.py:4: note: Possible overload variants: test_case.py:4: note: def __sub__(self, timedelta) -> date test_case.py:4: note: def __sub__(self, date) -> timedelta Found 1 error in 1 file (checked 1 source file)
def __sub__(self, timedelta) -> date
def __sub__(self, date) -> timedelta
No branches or pull requests
An error will be given if attempting to subtract an offset from a
datetime.date
Should be the
Union
of the twoThe text was updated successfully, but these errors were encountered: