Skip to content

Commit d63bfdc

Browse files
committed
Update stubs
1 parent 906a593 commit d63bfdc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

odoo-stubs/tools/date_utils.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ from dateutil.relativedelta import relativedelta
66
_DateTimeT = TypeVar('_DateTimeT', datetime.date, datetime.datetime)
77

88
def get_month(date: _DateTimeT) -> Tuple[_DateTimeT, _DateTimeT]: ...
9-
def get_quarter_number(date) -> int: ...
9+
def get_quarter_number(date: _DateTimeT) -> int: ...
1010
def get_quarter(date: _DateTimeT) -> Tuple[_DateTimeT, _DateTimeT]: ...
1111
def get_fiscal_year(date: _DateTimeT, day: int = ..., month: int = ...) -> Tuple[_DateTimeT, _DateTimeT]: ...
12-
def get_timedelta(qty, granularity) -> relativedelta: ...
13-
def start_of(value: _DateTimeT, granularity) -> _DateTimeT: ...
14-
def end_of(value: _DateTimeT, granularity) -> _DateTimeT: ...
12+
def get_timedelta(qty: int, granularity: str) -> relativedelta: ...
13+
def start_of(value: _DateTimeT, granularity: str) -> _DateTimeT: ...
14+
def end_of(value: _DateTimeT, granularity: str) -> _DateTimeT: ...
1515
def add(value: _DateTimeT, *args, **kwargs) -> _DateTimeT: ...
1616
def subtract(value: _DateTimeT, *args, **kwargs) -> _DateTimeT: ...
1717
def json_default(obj) -> str: ...

0 commit comments

Comments
 (0)