Update stubs

This commit is contained in:
Trinh Anh Ngoc
2020-05-31 10:28:59 +07:00
parent 476ea45ee0
commit 9b7a719cbe
46 changed files with 111 additions and 112 deletions

View File

@@ -1 +1,18 @@
def __getattr__(name): ... from . import addons as addons, api as api, cli as cli, conf as conf, fields as fields, http as http, loglevels as loglevels, models as models, netsvc as netsvc, osv as osv, release as release, service as service, sql_db as sql_db, tools as tools
from odoo.tools.translate import _ as _
from typing import Any, Optional
__path__: Any
evented: bool
def gevent_wait_callback(conn: Any, timeout: Optional[Any] = ...) -> None: ...
multi_process: bool
_babelCoreParseLocale: Any
def _babelCoreParseLocale_unitag(identifier: Any, sep: str = ...): ...
def _decompress(data: Any): ...
SUPERUSER_ID: int
def registry(database_name: Optional[Any] = ...): ...

View File

@@ -1,8 +1,7 @@
from collections import Mapping from collections import Mapping
from typing import Any, Optional from typing import Any, Optional
from .sql_db import Cursor from odoo.sql_db import Cursor
__all__: Any __all__: Any
_logger: Any _logger: Any

View File

@@ -1,4 +1,3 @@
from odoo.modules import get_module_path as get_module_path, get_modules as get_modules
from typing import Any from typing import Any
commands: Any commands: Any

View File

@@ -1,4 +1,4 @@
from . import Command as Command from . import Command
from typing import Any from typing import Any
class Deploy(Command): class Deploy(Command):

View File

@@ -1,4 +1,4 @@
from . import Command as Command from . import Command
from typing import Any, Optional from typing import Any, Optional
class Scaffold(Command): class Scaffold(Command):

View File

@@ -1,4 +1,4 @@
from . import Command as Command from . import Command
from typing import Any from typing import Any
__author__: Any __author__: Any

View File

@@ -1,6 +1,5 @@
import code import code
from . import Command as Command from . import Command
from odoo.tools import config as config
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,7 +1,4 @@
from . import Command as Command from . import Command
from .server import main as main
from odoo.modules.module import MANIFEST_NAMES as MANIFEST_NAMES, get_module_root as get_module_root
from odoo.service.db import DatabaseExists as DatabaseExists, _create_empty_database as _create_empty_database
from typing import Any from typing import Any
class Start(Command): class Start(Command):

View File

@@ -1,4 +1,3 @@
from .tools.func import frame_codeinfo as frame_codeinfo
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,7 +1,9 @@
import datetime import datetime
from dateutil.relativedelta import relativedelta as relativedelta
from typing import Any, Optional from typing import Any, Optional
from .tools import date_utils from odoo.tools import date_utils
DATE_LENGTH: Any DATE_LENGTH: Any
DATETIME_LENGTH: Any DATETIME_LENGTH: Any
@@ -267,6 +269,7 @@ class Datetime(Field):
def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ... def convert_to_cache(self, value: Any, record: Any, validate: bool = ...): ...
def convert_to_export(self, value: Any, record: Any): ... def convert_to_export(self, value: Any, record: Any): ...
def convert_to_display_name(self, value: Any, record: Any): ... def convert_to_display_name(self, value: Any, record: Any): ...
_BINARY = memoryview
class Binary(Field): class Binary(Field):
type: str = ... type: str = ...

View File

@@ -1,11 +1,13 @@
from typing import Any, Optional, Union import werkzeug.wsgi
import werkzeug.contrib.sessions
from datetime import date as date
from odoo import fields as fields
from typing import Any, Optional
from werkzeug.contrib.sessions import Session from odoo.api import Environment
import werkzeug.wrappers from odoo.sql_db import Cursor
from .api import Environment
from .sql_db import Cursor
_logger: Any
rpc_request: Any rpc_request: Any
rpc_response: Any rpc_response: Any
STATIC_CACHE: Any STATIC_CACHE: Any
@@ -117,7 +119,7 @@ def routing_map(modules: Any, nodb_only: Any, converters: Optional[Any] = ...):
class AuthenticationError(Exception): ... class AuthenticationError(Exception): ...
class SessionExpiredException(Exception): ... class SessionExpiredException(Exception): ...
class OpenERPSession(Session): class OpenERPSession(werkzeug.contrib.sessions.Session):
inited: bool = ... inited: bool = ...
modified: bool = ... modified: bool = ...
rotate: bool = ... rotate: bool = ...
@@ -165,7 +167,6 @@ class Root:
def session_store(self): ... def session_store(self): ...
def nodb_routing_map(self): ... def nodb_routing_map(self): ...
def __call__(self, environ: Any, start_response: Any): ... def __call__(self, environ: Any, start_response: Any): ...
dispatch: Any = ...
def load_addons(self) -> None: ... def load_addons(self) -> None: ...
def setup_session(self, httprequest: Any): ... def setup_session(self, httprequest: Any): ...
def setup_db(self, httprequest: Any) -> None: ... def setup_db(self, httprequest: Any) -> None: ...

View File

@@ -1,12 +1,14 @@
from collections import MutableMapping
from typing import Any, Optional, List, Dict, Generator
from . import api, fields from . import api, fields
from .api import Environment from .api import Environment
from .modules.registry import Registry from .modules.registry import Registry
from .sql_db import Cursor from .sql_db import Cursor
from .tools.safe_eval import safe_eval as safe_eval
from collections import MutableMapping
from typing import Any, Optional, List, Dict, Generator
_logger: Any
_schema: Any
_unlink: Any
regex_order: Any regex_order: Any
regex_object_name: Any regex_object_name: Any
regex_pg_name: Any regex_pg_name: Any
@@ -31,6 +33,7 @@ class MetaModel(api.Meta):
def _get_addon_name(self, full_name: Any): ... def _get_addon_name(self, full_name: Any): ...
class NewId: class NewId:
__slots__: Any = ...
ref: Any = ... ref: Any = ...
def __init__(self, ref: Optional[Any] = ...) -> None: ... def __init__(self, ref: Optional[Any] = ...) -> None: ...
def __bool__(self): ... def __bool__(self): ...
@@ -146,7 +149,7 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
def _read_group_process_groupby(self, gb: Any, query: Any): ... def _read_group_process_groupby(self, gb: Any, query: Any): ...
def _read_group_prepare_data(self, key: Any, value: Any, groupby_dict: Any): ... def _read_group_prepare_data(self, key: Any, value: Any, groupby_dict: Any): ...
def _read_group_format_result(self, data: Any, annotated_groupbys: Any, groupby: Any, domain: Any): ... def _read_group_format_result(self, data: Any, annotated_groupbys: Any, groupby: Any, domain: Any): ...
def read_group(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...) -> List[Dict]: ... def read_group(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ...
def _read_group_raw(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ... def _read_group_raw(self, domain: Any, fields: Any, groupby: Any, offset: int = ..., limit: Optional[Any] = ..., orderby: bool = ..., lazy: bool = ...): ...
def _read_group_resolve_many2one_fields(self, data: Any, fields: Any) -> None: ... def _read_group_resolve_many2one_fields(self, data: Any, fields: Any) -> None: ...
def _inherits_join_add(self, current_model: Any, parent_model_name: Any, query: Any): ... def _inherits_join_add(self, current_model: Any, parent_model_name: Any, query: Any): ...
@@ -227,7 +230,7 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
def ids(self) -> List[int]: ... def ids(self) -> List[int]: ...
_cr: Cursor _cr: Cursor
_uid: int _uid: int
_context: Dict _context: dict
def ensure_one(self): ... def ensure_one(self): ...
def with_env(self, env: Any) -> BaseModel: ... def with_env(self, env: Any) -> BaseModel: ...
def sudo(self, user: Any = ...) -> BaseModel: ... def sudo(self, user: Any = ...) -> BaseModel: ...

View File

@@ -1,5 +1,3 @@
from odoo import SUPERUSER_ID as SUPERUSER_ID, api as api
from odoo.modules.module import adapt_version as adapt_version, initialize_sys_path as initialize_sys_path, load_openerp_module as load_openerp_module
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,6 +1,3 @@
from odoo.modules.module import get_resource_path as get_resource_path
from odoo.tools import pycompat as pycompat
from odoo.tools.parse_version import parse_version as parse_version
from typing import Any from typing import Any
def load_script(path: Any, module_name: Any): ... def load_script(path: Any, module_name: Any): ...

View File

@@ -1,5 +1,4 @@
from odoo import SUPERUSER_ID as SUPERUSER_ID, api as api from odoo import SUPERUSER_ID as SUPERUSER_ID, api as api
from odoo.tools import pycompat as pycompat
from operator import itemgetter as itemgetter from operator import itemgetter as itemgetter
from typing import Any, Optional from typing import Any, Optional

View File

@@ -1,8 +1,5 @@
from .. import SUPERUSER_ID as SUPERUSER_ID
from collections import Mapping, defaultdict as defaultdict from collections import Mapping, defaultdict as defaultdict
from odoo.sql_db import TestCursor as TestCursor from odoo.tools import table_exists as table_exists
from odoo.tools import OrderedSet as OrderedSet, assertion_report as assertion_report, config as config, existing_tables as existing_tables, lazy_classproperty as lazy_classproperty, lazy_property as lazy_property, table_exists as table_exists, topological_sort as topological_sort
from odoo.tools.lru import LRU as LRU
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,5 +1,4 @@
import logging.handlers import logging.handlers
from . import release as release, sql_db as sql_db, tools as tools
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,6 +1,5 @@
from ..models import BaseModel as BaseModel, MAGIC_COLUMNS as MAGIC_COLUMNS from ..models import MAGIC_COLUMNS as MAGIC_COLUMNS
from functools import partial as partial from functools import partial as partial
from odoo.tools import pycompat as pycompat
from typing import Any, Optional from typing import Any, Optional
NOT_OPERATOR: str NOT_OPERATOR: str

View File

@@ -1,7 +1,5 @@
from ..exceptions import except_orm as except_orm from ..exceptions import except_orm as except_orm
from ..models import AbstractModel as AbstractModel, BaseModel as BaseModel, LOG_ACCESS_COLUMNS as LOG_ACCESS_COLUMNS, MAGIC_COLUMNS as MAGIC_COLUMNS, MetaModel as MetaModel, Model as Model, TransientModel as TransientModel from ..models import AbstractModel as AbstractModel, BaseModel, LOG_ACCESS_COLUMNS as LOG_ACCESS_COLUMNS, MAGIC_COLUMNS as MAGIC_COLUMNS, MetaModel as MetaModel, Model as Model, TransientModel as TransientModel
from odoo.tools import pycompat as pycompat
from odoo.tools.safe_eval import safe_eval as safe_eval
from typing import Any, Optional from typing import Any, Optional
browse_record_list = BaseModel browse_record_list = BaseModel

View File

@@ -1,5 +1,5 @@
from ..exceptions import except_orm as except_orm from ..exceptions import except_orm
from .orm import AbstractModel as AbstractModel, Model as Model, TransientModel as TransientModel from .orm import AbstractModel, Model, TransientModel
except_osv = except_orm except_osv = except_orm
osv = Model osv = Model

View File

@@ -1,6 +1,3 @@
from . import security as security
from odoo.exceptions import AccessDenied as AccessDenied
from odoo.tools.translate import _ as _
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,9 +1,4 @@
from functools import wraps as wraps from functools import wraps as wraps
from odoo import SUPERUSER_ID as SUPERUSER_ID
from odoo.exceptions import AccessDenied as AccessDenied
from odoo.release import version_info as version_info
from odoo.sql_db import db_connect as db_connect
from odoo.tools import pycompat as pycompat
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,8 +1,3 @@
from . import security as security
from ..tools import lazy as lazy, traverse_containers as traverse_containers
from odoo.exceptions import QWebException as QWebException, UserError as UserError, ValidationError as ValidationError
from odoo.models import check_method_name as check_method_name
from odoo.tools.translate import _ as _, translate as translate
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,9 +1,4 @@
import werkzeug.serving import werkzeug.serving
from odoo.modules import get_modules as get_modules
from odoo.modules.module import get_test_modules as get_test_modules, run_unit_tests as run_unit_tests
from odoo.modules.registry import Registry as Registry
from odoo.release import nt_service_name as nt_service_name
from odoo.tools import config as config, dumpstacks as dumpstacks, log_ormcache_stats as log_ormcache_stats, stripped_sys_argv as stripped_sys_argv
from typing import Any, Optional from typing import Any, Optional
INOTIFY_LISTEN_EVENTS: Any INOTIFY_LISTEN_EVENTS: Any

View File

@@ -1,4 +1,3 @@
from odoo.tools import config as config
from typing import Any from typing import Any
_logger: Any _logger: Any

View File

@@ -1,7 +1,4 @@
import psycopg2.extensions import psycopg2.extensions
from . import tools as tools
from .tools import pycompat as pycompat, ustr as ustr
from .tools.func import frame_codeinfo as frame_codeinfo
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,2 +1,2 @@
from . import common
from .common import * from .common import *
from . import common as common

View File

@@ -2,10 +2,11 @@ import collections
import unittest import unittest
from typing import Any, Optional from typing import Any, Optional
from ..api import Environment from odoo.api import Environment
from ..modules.registry import Registry from odoo.modules.registry import Registry
from ..sql_db import Cursor from odoo.sql_db import Cursor
_logger: Any
ADDONS_PATH: Any ADDONS_PATH: Any
HOST: str HOST: str
PORT: Any PORT: Any
@@ -39,12 +40,12 @@ class BaseCase(TreeCase):
def uid(self, user: Any) -> None: ... def uid(self, user: Any) -> None: ...
def ref(self, xid: Any): ... def ref(self, xid: Any): ...
def browse_ref(self, xid: Any): ... def browse_ref(self, xid: Any): ...
def _assertRaises(self, exception: Any) -> None: ...
def assertRaises(self, exception: Any, func: Optional[Any] = ..., *args: Any, **kwargs: Any): ... def assertRaises(self, exception: Any, func: Optional[Any] = ..., *args: Any, **kwargs: Any): ...
def assertQueryCount(self, default: int = ..., **counters: Any): ... def assertQueryCount(self, default: int = ..., **counters: Any): ...
def assertRecordValues(self, records: Any, expected_values: Any): ... def assertRecordValues(self, records: Any, expected_values: Any): ...
def shortDescription(self): ... def shortDescription(self): ...
def assertItemsEqual(self, a: Any, b: Any, msg: Optional[Any] = ...) -> None: ... def assertItemsEqual(self, a: Any, b: Any, msg: Optional[Any] = ...) -> None: ...
def __getattr__(self, item): ...
class TransactionCase(BaseCase): class TransactionCase(BaseCase):
def setUp(self): ... def setUp(self): ...
@@ -60,16 +61,18 @@ class SingleTransactionCase(BaseCase):
savepoint_seq: Any savepoint_seq: Any
class SavepointCase(SingleTransactionCase): class SavepointCase(SingleTransactionCase):
_savepoint_id: Any = ...
def setUp(self) -> None: ... def setUp(self) -> None: ...
def tearDown(self) -> None: ... def tearDown(self) -> None: ...
class ChromeBrowser: class ChromeBrowser:
_logger: Any = ...
devtools_port: Any = ... devtools_port: Any = ...
ws_url: str = ... ws_url: str = ...
ws: Any = ... ws: Any = ...
request_id: int = ... request_id: int = ...
user_data_dir: Any = ... user_data_dir: Any = ...
chrome_process: Any = ... chrome_pid: Any = ...
screencast_frames: Any = ... screencast_frames: Any = ...
sigxcpu_handler: Any = ... sigxcpu_handler: Any = ...
def __init__(self, logger: Any) -> None: ... def __init__(self, logger: Any) -> None: ...
@@ -77,10 +80,22 @@ class ChromeBrowser:
def stop(self) -> None: ... def stop(self) -> None: ...
@property @property
def executable(self): ... def executable(self): ...
def _spawn_chrome(self, cmd: Any): ...
def _chrome_start(self) -> None: ...
def _find_websocket(self) -> None: ...
def _json_command(self, command: Any, timeout: int = ...): ...
def _open_websocket(self) -> None: ...
def _websocket_send(self, method: Any, params: Optional[Any] = ...): ...
def _websocket_wait_id(self, awaited_id: Any, timeout: int = ...): ...
def _websocket_wait_event(self, method: Any, params: Optional[Any] = ..., timeout: int = ...): ...
def _get_shotname(self, prefix: Any, ext: Any): ...
def take_screenshot(self, prefix: str = ...) -> None: ... def take_screenshot(self, prefix: str = ...) -> None: ...
def _save_screencast(self, prefix: str = ...) -> None: ...
def start_screencast(self) -> None: ... def start_screencast(self) -> None: ...
def set_cookie(self, name: Any, value: Any, path: Any, domain: Any): ... def set_cookie(self, name: Any, value: Any, path: Any, domain: Any): ...
def delete_cookie(self, name: Any, **kwargs: Any): ... def delete_cookie(self, name: Any, **kwargs: Any): ...
def _wait_ready(self, ready_code: Any, timeout: int = ...): ...
def _wait_code_ok(self, code: Any, timeout: Any): ...
def navigate_to(self, url: Any, wait_stop: bool = ...) -> None: ... def navigate_to(self, url: Any, wait_stop: bool = ...) -> None: ...
def clear(self) -> None: ... def clear(self) -> None: ...
@@ -91,6 +106,7 @@ class HttpCase(TransactionCase):
xmlrpc_common: Any = ... xmlrpc_common: Any = ...
xmlrpc_db: Any = ... xmlrpc_db: Any = ...
xmlrpc_object: Any = ... xmlrpc_object: Any = ...
_logger: Any = ...
def __init__(self, methodName: str = ...) -> None: ... def __init__(self, methodName: str = ...) -> None: ...
@classmethod @classmethod
def start_browser(cls, logger: Any) -> None: ... def start_browser(cls, logger: Any) -> None: ...
@@ -101,6 +117,7 @@ class HttpCase(TransactionCase):
opener: Any = ... opener: Any = ...
def setUp(self) -> None: ... def setUp(self) -> None: ...
def url_open(self, url: Any, data: Optional[Any] = ..., timeout: int = ...): ... def url_open(self, url: Any, data: Optional[Any] = ..., timeout: int = ...): ...
def _wait_remaining_requests(self) -> None: ...
def authenticate(self, user: Any, password: Any) -> None: ... def authenticate(self, user: Any, password: Any) -> None: ...
def browser_js(self, url_path: Any, code: Any, ready: str = ..., login: Optional[Any] = ..., timeout: int = ..., **kw: Any) -> None: ... def browser_js(self, url_path: Any, code: Any, ready: str = ..., login: Optional[Any] = ..., timeout: int = ..., **kw: Any) -> None: ...
phantom_js: Any = ... phantom_js: Any = ...
@@ -113,41 +130,73 @@ ref_re: Any
class Form: class Form:
def __init__(self, recordp: Any, view: Optional[Any] = ...) -> None: ... def __init__(self, recordp: Any, view: Optional[Any] = ...) -> None: ...
def _o2m_set_edition_view(self, descr: Any, node: Any, level: Any) -> None: ...
def __str__(self): ...
def _process_fvg(self, model: Any, fvg: Any, level: int = ...) -> None: ...
def _init_from_defaults(self, model: Any): ...
def _init_from_values(self, values: Any) -> None: ...
def __getattr__(self, field: Any): ... def __getattr__(self, field: Any): ...
def _get_modifier(self, field: Any, modifier: Any, default: bool = ..., modmap: Optional[Any] = ..., vals: Optional[Any] = ...): ...
_OPS: Any = ...
def _get_context(self, field: Any): ...
def __setattr__(self, field: Any, value: Any) -> None: ... def __setattr__(self, field: Any, value: Any) -> None: ...
def __enter__(self): ... def __enter__(self): ...
def __exit__(self, etype: Any, _evalue: Any, _etb: Any) -> None: ... def __exit__(self, etype: Any, _evalue: Any, _etb: Any) -> None: ...
def save(self): ... def save(self): ...
def _values_to_save(self, all_fields: bool = ...): ...
def _perform_onchange(self, fields: Any) -> None: ...
def _onchange_values(self): ...
def _cleanup_onchange(self, descr: Any, value: Any, current: Any): ...
class O2MForm(Form): class O2MForm(Form):
def __init__(self, proxy: Any, index: Optional[Any] = ...) -> None: ... def __init__(self, proxy: Any, index: Optional[Any] = ...) -> None: ...
def _get_modifier(self, field: Any, modifier: Any, default: bool = ..., modmap: Optional[Any] = ..., vals: Optional[Any] = ...): ...
def _onchange_values(self): ...
def save(self) -> None: ... def save(self) -> None: ...
def _values_to_save(self, all_fields: bool = ...): ...
class UpdateDict(dict): class UpdateDict(dict):
_changed: Any = ...
def __init__(self, *args: Any, **kwargs: Any) -> None: ... def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def changed_items(self): ... def changed_items(self): ...
def update(self, *args: Any, **kw: Any) -> None: ... def update(self, *args: Any, **kw: Any) -> None: ...
class X2MProxy: ... class X2MProxy:
_parent: Any = ...
_field: Any = ...
def _assert_editable(self) -> None: ...
class O2MProxy(X2MProxy): class O2MProxy(X2MProxy):
_parent: Any = ...
_field: Any = ...
_records: Any = ...
def __init__(self, parent: Any, field: Any) -> None: ... def __init__(self, parent: Any, field: Any) -> None: ...
def __len__(self): ... def __len__(self): ...
@property
def _model(self): ...
@property
def _descr(self): ...
def _command_index(self, for_record: Any): ...
def new(self): ... def new(self): ...
def edit(self, index: Any): ... def edit(self, index: Any): ...
def remove(self, index: Any) -> None: ... def remove(self, index: Any) -> None: ...
class M2MProxy(X2MProxy, collections.Sequence): class M2MProxy(X2MProxy, collections.Sequence):
_parent: Any = ...
_field: Any = ...
def __init__(self, parent: Any, field: Any) -> None: ... def __init__(self, parent: Any, field: Any) -> None: ...
def __getitem__(self, it: Any): ... def __getitem__(self, it: Any): ...
def __len__(self): ... def __len__(self): ...
def __iter__(self): ... def __iter__(self) -> Any: ...
def __contains__(self, record: Any): ... def __contains__(self, record: Any): ...
def add(self, record: Any) -> None: ... def add(self, record: Any) -> None: ...
def _get_ids(self): ...
def remove(self, id: Optional[Any] = ..., index: Optional[Any] = ...) -> None: ... def remove(self, id: Optional[Any] = ..., index: Optional[Any] = ...) -> None: ...
def clear(self) -> None: ... def clear(self) -> None: ...
def record_to_values(fields: Any, record: Any): ... def record_to_values(fields: Any, record: Any): ...
def _cleanup_from_default(type_: Any, value: Any): ...
def _get_node(view: Any, f: Any, *arg: Any): ...
def tagged(*tags: Any): ... def tagged(*tags: Any): ...
class TagsSelector: class TagsSelector:

View File

@@ -1,4 +1,3 @@
from . import pycompat as pycompat
from typing import Any, Optional from typing import Any, Optional
__version_info__: Any __version_info__: Any

View File

@@ -1,4 +1,3 @@
from . import pycompat as pycompat
from typing import Any, Optional from typing import Any, Optional
unsafe_eval = eval unsafe_eval = eval

View File

@@ -1,6 +1,4 @@
import optparse import optparse
from . import appdirs as appdirs, pycompat as pycompat
from .. import conf as conf, loglevels as loglevels, release as release
from typing import Any, Optional from typing import Any, Optional
crypt_context: Any crypt_context: Any

View File

@@ -1,8 +1,3 @@
from . import assertion_report as assertion_report, pycompat as pycompat
from .config import config as config
from .misc import SKIPPED_ELEMENT_TYPES as SKIPPED_ELEMENT_TYPES, file_open as file_open, unquote as unquote, ustr as ustr
from .translate import _ as _
from odoo import SUPERUSER_ID as SUPERUSER_ID
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,5 +1,3 @@
from . import ustr as ustr
from .func import lazy as lazy
from typing import Any from typing import Any
def get_month(date: Any): ... def get_month(date: Any): ...

View File

@@ -1,4 +1,3 @@
from odoo.tools import pycompat as pycompat
from typing import Any, Optional from typing import Any, Optional
def round(f: Any): ... def round(f: Any): ...

View File

@@ -1,4 +1,3 @@
from odoo.tools import pycompat as pycompat
from typing import Any, Optional from typing import Any, Optional
FILETYPE_BASE64_MAGICWORD: Any FILETYPE_BASE64_MAGICWORD: Any

View File

@@ -1,4 +1,3 @@
from .func import synchronized as synchronized
from typing import Any, Optional from typing import Any, Optional
__all__: Any __all__: Any

View File

@@ -1,6 +1,4 @@
from lxml.html import clean from lxml.html import clean
from odoo.loglevels import ustr as ustr
from odoo.tools import misc as misc, pycompat as pycompat
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -2,13 +2,9 @@ from .cache import *
import pickle as pickle_ import pickle as pickle_
import xlsxwriter import xlsxwriter
import xlwt import xlwt
from . import pycompat as pycompat
from .config import config as config
from .parse_version import parse_version as parse_version
from .which import which as which
from collections import Mapping, MutableMapping, MutableSet, defaultdict from collections import Mapping, MutableMapping, MutableSet, defaultdict
from itertools import repeat as repeat from itertools import repeat as repeat
from odoo.loglevels import exception_to_unicode as exception_to_unicode, get_encodings as get_encodings, ustr as ustr from odoo.loglevels import exception_to_unicode as exception_to_unicode, get_encodings as get_encodings
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,5 +1,4 @@
import ctypes import ctypes
from odoo.release import nt_service_name as nt_service_name
from typing import Any, Optional from typing import Any, Optional
def listdir(dir: Any, recursive: bool = ...): ... def listdir(dir: Any, recursive: bool = ...): ...

View File

@@ -1,4 +1,3 @@
from odoo.tools import pycompat as pycompat
from typing import Any from typing import Any
component_re: Any component_re: Any

View File

@@ -1,5 +1,3 @@
from . import pycompat as pycompat
from .misc import ustr as ustr
from typing import Any, Optional from typing import Any, Optional
unsafe_eval = eval unsafe_eval = eval

View File

@@ -1,4 +1,3 @@
from . import config as config
from typing import Any from typing import Any
config_file_00: Any config_file_00: Any

View File

@@ -1,6 +1,4 @@
from . import config as config, pycompat as pycompat, ustr as ustr from . import config as config
from .. import api as api
from .safe_eval import safe_eval as safe_eval
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,7 +1,4 @@
import csv import csv
from . import config as config, pycompat as pycompat
from .misc import SKIPPED_ELEMENT_TYPES as SKIPPED_ELEMENT_TYPES, file_open as file_open, get_iso_codes as get_iso_codes
from .osutil import walksymlinks as walksymlinks
from typing import Any, Optional from typing import Any, Optional
_logger: Any _logger: Any

View File

@@ -1,4 +1,3 @@
from odoo import tools as tools
from typing import Any from typing import Any
_logger: Any _logger: Any

View File

@@ -1,4 +1,3 @@
from odoo.exceptions import UserError as UserError
from odoo.tools.misc import file_open as file_open from odoo.tools.misc import file_open as file_open
from typing import Any, Optional from typing import Any, Optional