mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-15 22:22:00 +08:00
Configure mypy and flake8 for our re-export files
This removes the need to use __all__ in these files, while also allowing us to have strictness elsewhere in the codebase.
This commit is contained in:
@@ -1,23 +1,10 @@
|
||||
# This file also re-exports symbols for wider use. We configure mypy and flake8
|
||||
# to be aware that this file does this.
|
||||
|
||||
from jedi.inference.compiled.value import CompiledValue, CompiledName, \
|
||||
CompiledValueFilter, CompiledValueName, create_from_access_path
|
||||
from jedi.inference.base_value import LazyValueWrapper
|
||||
|
||||
__all__ = (
|
||||
'CompiledValue',
|
||||
'CompiledName',
|
||||
'CompiledValueFilter',
|
||||
'CompiledValueName',
|
||||
'create_from_access_path',
|
||||
|
||||
'LazyValueWrapper',
|
||||
|
||||
'builtin_from_name',
|
||||
'ExactValue',
|
||||
'create_simple_object',
|
||||
'get_string_value_set',
|
||||
'load_module',
|
||||
)
|
||||
|
||||
|
||||
def builtin_from_name(inference_state, string):
|
||||
typing_builtins_module = inference_state.builtins_module
|
||||
|
||||
@@ -1,21 +1,9 @@
|
||||
# Re-export symbols for wider use. We configure mypy and flake8 to be aware that
|
||||
# this file does this.
|
||||
|
||||
from jedi.inference.value.module import ModuleValue
|
||||
from jedi.inference.value.klass import ClassValue
|
||||
from jedi.inference.value.function import FunctionValue, \
|
||||
MethodValue
|
||||
from jedi.inference.value.instance import AnonymousInstance, BoundMethod, \
|
||||
CompiledInstance, AbstractInstanceValue, TreeInstance
|
||||
|
||||
__all__ = (
|
||||
'ModuleValue',
|
||||
|
||||
'ClassValue',
|
||||
|
||||
'FunctionValue',
|
||||
'MethodValue',
|
||||
|
||||
'AnonymousInstance',
|
||||
'BoundMethod',
|
||||
'CompiledInstance',
|
||||
'AbstractInstanceValue',
|
||||
'TreeInstance',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user