Update stubs

This commit is contained in:
Trinh Anh Ngoc
2021-10-27 14:47:17 +07:00
parent 3f752e9353
commit cc20ece0dd
2 changed files with 5 additions and 5 deletions

View File

@@ -228,13 +228,13 @@ class Date(Field):
column_type: Any = ...
column_cast_from: Any = ...
@staticmethod
def today(*args: Any) -> datetime.date: ...
def today(*args: Any) -> str: ...
@staticmethod
def context_today(record: Any, timestamp: Optional[Any] = ...) -> datetime.date: ...
def context_today(record: Any, timestamp: Optional[Any] = ...) -> str: ...
@staticmethod
def from_string(value: Any) -> datetime.date: ...
@staticmethod
def to_string(value: Any): ...
def to_string(value: Any) -> str: ...
def convert_to_column(self, value: Any, record: Any, values: Optional[Any] = ...): ...
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
def convert_to_export(self, value: Any, record: Any): ...
@@ -244,7 +244,7 @@ class Datetime(Field):
column_type: Any = ...
column_cast_from: Any = ...
@staticmethod
def now(*args: Any) -> datetime.datetime: ...
def now(*args: Any) -> str: ...
@staticmethod
def context_timestamp(record: Any, timestamp: Any) -> datetime.datetime: ...
@staticmethod

View File

@@ -11,7 +11,7 @@ def find_stubs(package):
setup(
name="odoo12-stubs",
name="odoo11-stubs",
url="https://github.com/trinhanhngoc/odoo-stubs",
author="Trinh Anh Ngoc",
author_email="atw1990@gmail.com",