astroid 4.3.4__tar.gz → 4.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {astroid-4.3.4 → astroid-4.4.0}/CONTRIBUTORS.txt +41 -13
- {astroid-4.3.4 → astroid-4.4.0}/MANIFEST.in +0 -1
- {astroid-4.3.4/astroid.egg-info → astroid-4.4.0}/PKG-INFO +2 -4
- {astroid-4.3.4 → astroid-4.4.0}/astroid/__pkginfo__.py +1 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/_ast.py +1 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/bases.py +32 -15
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_builtin_inference.py +98 -80
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_ctypes.py +10 -2
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_dataclasses.py +55 -44
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_gi.py +18 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_namedtuple_enum.py +134 -32
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_core_einsumfunc.py +5 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_core_fromnumeric.py +5 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_core_multiarray.py +15 -3
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_core_numeric.py +5 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_core_numerictypes.py +60 -19
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_core_umath.py +12 -3
- astroid-4.4.0/astroid/brain/brain_numpy_dtypes.py +95 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_ndarray.py +11 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_utils.py +17 -6
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_re.py +3 -9
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_six.py +1 -3
- astroid-4.4.0/astroid/brain/brain_string.py +33 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_subprocess.py +2 -4
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_type.py +9 -7
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_typing.py +23 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/helpers.py +4 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/builder.py +30 -17
- {astroid-4.3.4 → astroid-4.4.0}/astroid/const.py +0 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/constraint.py +298 -38
- {astroid-4.3.4 → astroid-4.4.0}/astroid/decorators.py +2 -2
- {astroid-4.3.4 → astroid-4.4.0}/astroid/helpers.py +46 -9
- {astroid-4.3.4 → astroid-4.4.0}/astroid/inference_tip.py +1 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/interpreter/_import/spec.py +1 -3
- {astroid-4.3.4 → astroid-4.4.0}/astroid/interpreter/_import/util.py +11 -7
- {astroid-4.3.4 → astroid-4.4.0}/astroid/interpreter/objectmodel.py +54 -1
- {astroid-4.3.4 → astroid-4.4.0}/astroid/manager.py +56 -24
- {astroid-4.3.4 → astroid-4.4.0}/astroid/modutils.py +60 -18
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/_base_nodes.py +6 -10
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/as_string.py +88 -25
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/node_classes.py +125 -88
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/node_ng.py +38 -45
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/scoped_nodes/mixin.py +7 -18
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/scoped_nodes/scoped_nodes.py +159 -130
- {astroid-4.3.4 → astroid-4.4.0}/astroid/objects.py +152 -8
- {astroid-4.3.4 → astroid-4.4.0}/astroid/protocols.py +151 -3
- {astroid-4.3.4 → astroid-4.4.0}/astroid/rebuilder.py +5 -6
- {astroid-4.3.4 → astroid-4.4.0}/astroid/transforms.py +5 -9
- {astroid-4.3.4 → astroid-4.4.0/astroid.egg-info}/PKG-INFO +2 -4
- {astroid-4.3.4 → astroid-4.4.0}/astroid.egg-info/SOURCES.txt +5 -4
- {astroid-4.3.4 → astroid-4.4.0}/pyproject.toml +136 -8
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/test_core_numerictypes.py +113 -1
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/test_core_umath.py +13 -0
- astroid-4.4.0/tests/brain/numpy/test_dtypes.py +105 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/test_ndarray.py +24 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_brain.py +241 -12
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_builtin.py +14 -1
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_ctypes.py +57 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_dataclasses.py +245 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_enum.py +249 -10
- astroid-4.4.0/tests/brain/test_gi.py +128 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_named_tuple.py +77 -3
- astroid-4.4.0/tests/brain/test_typing.py +272 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_typing_extensions.py +12 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_builder.py +189 -3
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_constraint.py +1193 -2
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_group_exceptions.py +21 -9
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_helpers.py +1 -1
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_inference.py +674 -1
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_manager.py +172 -2
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_modutils.py +135 -2
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_nodes.py +441 -8
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_nodes_lineno.py +14 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_object_model.py +86 -14
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_objects.py +26 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_protocols.py +204 -1
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_regrtest.py +68 -7
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_scoped_nodes.py +263 -1
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_transforms.py +142 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_type_params.py +1 -1
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/format.py +1 -1
- {astroid-4.3.4 → astroid-4.4.0}/tox.ini +7 -11
- astroid-4.3.4/astroid.egg-info/requires.txt +0 -3
- astroid-4.3.4/requirements_dev.txt +0 -7
- astroid-4.3.4/requirements_full.txt +0 -16
- astroid-4.3.4/requirements_minimal.txt +0 -10
- astroid-4.3.4/tests/brain/test_gi.py +0 -57
- astroid-4.3.4/tests/brain/test_typing.py +0 -99
- {astroid-4.3.4 → astroid-4.4.0}/LICENSE +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/README.rst +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/__main__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/arguments.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/astroid_manager.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_argparse.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_attrs.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_boto3.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_collections.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_crypt.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_curses.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_datetime.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_dateutil.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_decimal.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_functools.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_hashlib.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_http.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_hypothesis.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_io.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_mechanize.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_multiprocessing.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_core_function_base.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_ma.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_numpy_random_mtrand.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_pathlib.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_pkg_resources.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_pytest.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_qt.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_random.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_regex.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_responses.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_scipy_signal.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_signal.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_sqlalchemy.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_ssl.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_statistics.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_threading.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_unittest.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/brain/brain_uuid.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/context.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/exceptions.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/filter_statements.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/interpreter/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/interpreter/_import/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/interpreter/dunder_lookup.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/const.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/scoped_nodes/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/scoped_nodes/utils.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/nodes/utils.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/raw_building.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/test_utils.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/typing.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid/util.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid.egg-info/dependency_links.txt +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/astroid.egg-info/top_level.txt +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/setup.cfg +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/benchmarks/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/benchmarks/conftest.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/benchmarks/test_bench_endtoend.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/test_core_einsumfunc.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/test_core_fromnumeric.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/test_core_function_base.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/test_core_multiarray.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/test_core_numeric.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/test_ma.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/numpy/test_random_mtrand.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_argparse.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_attr.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_dateutil.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_hashlib.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_helpers.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_multiprocessing.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_pathlib.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_pytest.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_qt.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_regex.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_signal.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_six.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_ssl.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_statistics.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_threading.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/brain/test_unittest.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/resources.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_context.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_decorators.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_filter_statements.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_get_relative_base_path.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_inference_calls.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_lookup.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_nodes_position.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_python3.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_raw_building.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_stdlib.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/test_utils.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/MyPyPa-0.1.0-py2.5.egg +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/MyPyPa-0.1.0-py2.5.zip +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/SSL1/Connection1.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/SSL1/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/absimp/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/absimp/sidepackage/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/absimp/string.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/absimport.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/all.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/appl/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/appl/myConnection.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level/import_package.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level/namespace_package/lower_level/helper_function.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level/namespace_package/plugin_api.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level/namespace_package/top_level_function.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_three/double_name/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_three/module/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_three/module/double_name/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_three/module/double_name/function.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_three/module/sub_module/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_three/module/sub_module/sub_sub_module/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_three/module/sub_module/sub_sub_module/main.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_two/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_two/a.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_two/level1/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/beyond_top_level_two/level1/beyond_top_level_two.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/cache/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/cache/a.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/conditional.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/conditional_import/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/contribute_to_namespace/namespace_pep_420/submodule.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/descriptor_crash.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/divide_by_zero.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/email.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/fake_module_with_broken_getattr.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/fake_module_with_collection_getattribute.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/fake_module_with_warnings.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/find_test/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/find_test/module.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/find_test/module2.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/find_test/noendingnewline.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/find_test/nonregr.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/foogle/fax/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/foogle/fax/a.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/foogle_fax-0.12.5-py2.7-nspkg.pth +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/import_conflicting_names/math.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/import_setuptools_pep660/__editable___example_0_1_0_finder.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/import_setuptools_pep660/example/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/import_setuptools_pep660/example/subpackage/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/invalid_encoding.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/lmfp/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/lmfp/foo.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/max_inferable_limit_for_classes/main.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/max_inferable_limit_for_classes/nodes/roles.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/max_inferable_limit_for_classes/other_funcs.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/metaclass_recursion/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/metaclass_recursion/monkeypatch.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/metaclass_recursion/parent.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/module.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/module1abs/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/module1abs/core.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/module2.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/module3.14.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/module_dict_items_call/models.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/module_dict_items_call/test.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/namespace_pep_420/module.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/noendingnewline.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/nonregr.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/notall.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/notamodule/file.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/operator_precedence.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/package/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/package/absimport.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/package/hello.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/package/import_package_subpackage_module.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/package/subpackage/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/package/subpackage/module.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/parent_of_homonym/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/parent_of_homonym/doc/README.md +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/parent_of_homonym/doc/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkg_resources_1/package/foo.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkg_resources_2/package/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkg_resources_2/package/bar.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkg_resources_3/package/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkg_resources_3/package/baz.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkgutil_1/package/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkgutil_1/package/foo.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkgutil_2/package/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkgutil_2/package/bar.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkgutil_3/package/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/path_pkgutil_3/package/baz.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/recursion.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/tmp__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/unicode_package/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/unicode_package/core/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/data/x.zip +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/pyi_data/__init__.pyi +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/pyi_data/find_test/__init__.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/pyi_data/find_test/__init__.pyi +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/pyi_data/find_test/__init__.weird_ext +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/pyi_data/find_test/module.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/pyi_data/find_test/module2.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/pyi_data/find_test/noendingnewline.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/pyi_data/find_test/nonregr.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/pyi_data/find_test/standalone_file.weird_ext +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/pyi_data/module.py +0 -0
- {astroid-4.3.4 → astroid-4.4.0}/tests/testdata/python3/recursion_error.py +0 -0
|
@@ -14,8 +14,8 @@ Ex-maintainers
|
|
|
14
14
|
Maintainers
|
|
15
15
|
-----------
|
|
16
16
|
- Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
17
|
-
- Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
18
17
|
- Jacob Walls <jacobtylerwalls@gmail.com>
|
|
18
|
+
- Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
19
19
|
- Marc Mueller <30130371+cdce8p@users.noreply.github.com>
|
|
20
20
|
- Hippo91 <guillaume.peillex@gmail.com>
|
|
21
21
|
- Bryce Guinta <bryce.paul.guinta@gmail.com>
|
|
@@ -38,23 +38,27 @@ Contributors
|
|
|
38
38
|
- Artem Yurchenko <44875844+temyurchenko@users.noreply.github.com>
|
|
39
39
|
- David Liu <david@cs.toronto.edu>
|
|
40
40
|
- Alexandre Fayolle <alexandre.fayolle@logilab.fr>
|
|
41
|
-
- Eevee (Alex Munroe) <amunroe@yelp.com>
|
|
42
41
|
- Emmanuel Ferdman <emmanuelferdman@gmail.com>
|
|
43
|
-
-
|
|
42
|
+
- Sayed Nabhan <nabhan@bugqore.com>
|
|
43
|
+
- Eevee (Alex Munroe) <amunroe@yelp.com>
|
|
44
|
+
- KALI 834X <kali834x@gmail.com>
|
|
44
45
|
- Zen Lee <53538590+zenlyj@users.noreply.github.com>
|
|
46
|
+
- Julfried <julian.grimm8@gmail.com>
|
|
47
|
+
- David Gilman <davidgilman1@gmail.com>
|
|
45
48
|
- Tushar Sadhwani <tushar.sadhwani000@gmail.com>
|
|
46
49
|
- Matus Valo <matusvalo@users.noreply.github.com>
|
|
47
50
|
- Julien Jehannet <julien.jehannet@logilab.fr>
|
|
48
51
|
- Hugo van Kemenade <hugovk@users.noreply.github.com>
|
|
49
52
|
- Calen Pennington <calen.pennington@gmail.com>
|
|
50
53
|
- Antonio <antonio@zoftko.com>
|
|
54
|
+
- Fridayworks <aifriday700@gmail.com>
|
|
51
55
|
- Akhil Kamat <akhil.kamat@gmail.com>
|
|
52
|
-
- KALI 834X <kali834x@gmail.com>
|
|
53
56
|
- Tim Martin <tim@asymptotic.co.uk>
|
|
54
57
|
- Phil Schaf <flying-sheep@web.de>
|
|
55
58
|
- Alex Hall <alex.mojaki@gmail.com>
|
|
56
59
|
- Vincent Gao <gaobing1230@gmail.com>
|
|
57
60
|
- Samarth D N <dnsam550@gmail.com>
|
|
61
|
+
- Sai Asish Y <say.apm35@gmail.com>
|
|
58
62
|
- Raphael Gaschignard <raphael@makeleaps.com>
|
|
59
63
|
- Radosław Ganczarek <radoslaw@ganczarek.in>
|
|
60
64
|
- Paligot Gérard <androwiiid@gmail.com>
|
|
@@ -65,9 +69,10 @@ Contributors
|
|
|
65
69
|
- Daniel Harding <dharding@gmail.com>
|
|
66
70
|
- Dani Alcala <112832187+clavedeluna@users.noreply.github.com>
|
|
67
71
|
- Christian Clauss <cclauss@me.com>
|
|
72
|
+
- grayjk <grayjk@gmail.com>
|
|
68
73
|
- Ville Skyttä <ville.skytta@iki.fi>
|
|
69
74
|
- Synrom <30272537+Synrom@users.noreply.github.com>
|
|
70
|
-
-
|
|
75
|
+
- Sanjay Santhanam <51058514+Sanjays2402@users.noreply.github.com>
|
|
71
76
|
- Rene Zhang <rz99@cornell.edu>
|
|
72
77
|
- Philip Lorenz <philip@bithub.de>
|
|
73
78
|
- Nicolas Chauvat <nicolas.chauvat@logilab.fr>
|
|
@@ -79,12 +84,11 @@ Contributors
|
|
|
79
84
|
- FELD Boris <lothiraldan@gmail.com>
|
|
80
85
|
- Enji Cooper <yaneurabeya@gmail.com>
|
|
81
86
|
- Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
|
|
82
|
-
-
|
|
83
|
-
- Fridayworks <aifriday700@gmail.com>
|
|
87
|
+
- ANSHUL SINGH <72524975+ekanshul@users.noreply.github.com>
|
|
84
88
|
- tristanlatr <19967168+tristanlatr@users.noreply.github.com>
|
|
89
|
+
- renechoi <115696395+renechoi@users.noreply.github.com>
|
|
85
90
|
- kdelay <90545043+kdelay@users.noreply.github.com>
|
|
86
91
|
- jkmnt <git@firewood.fastmail.com>
|
|
87
|
-
- grayjk <grayjk@gmail.com>
|
|
88
92
|
- emile@crater.logilab.fr <emile@crater.logilab.fr>
|
|
89
93
|
- doranid <ddandd@gmail.com>
|
|
90
94
|
- brendanator <brendan.maginnis@gmail.com>
|
|
@@ -94,9 +98,9 @@ Contributors
|
|
|
94
98
|
- Stefan Scherfke <stefan@sofa-rockers.org>
|
|
95
99
|
- Sergei Lebedev <185856+superbobry@users.noreply.github.com>
|
|
96
100
|
- Saugat Pachhai (सौगात) <suagatchhetri@outlook.com>
|
|
97
|
-
- Sanjay Santhanam <51058514+Sanjays2402@users.noreply.github.com>
|
|
98
101
|
- Robert Hofer <1058012+hofrob@users.noreply.github.com>
|
|
99
102
|
- Ram Rachum <ram@rachum.com>
|
|
103
|
+
- Pierre-Yves Le Borgne <pylaterreur@gmail.com>
|
|
100
104
|
- Pierre-Yves David <pierre-yves.david@logilab.fr>
|
|
101
105
|
- Peter Pentchev <roam@ringlet.net>
|
|
102
106
|
- Peter Kolbus <peter.kolbus@gmail.com>
|
|
@@ -104,6 +108,7 @@ Contributors
|
|
|
104
108
|
- Moises Lopez <moylop260@vauxoo.com>
|
|
105
109
|
- Mitch Harding <mitchell.harding@hpe.com>
|
|
106
110
|
- Michal Vasilek <michal@vasilek.cz>
|
|
111
|
+
- Langning Zhang <zln1905391059@163.com>
|
|
107
112
|
- Keichi Takahashi <keichi.t@me.com>
|
|
108
113
|
- Kavins Singh <kavinsingh@hotmail.com>
|
|
109
114
|
- Karthikeyan Singaravelan <tir.karthi@gmail.com>
|
|
@@ -112,18 +117,20 @@ Contributors
|
|
|
112
117
|
- John Vandenberg <jayvdb@gmail.com>
|
|
113
118
|
- Jacob Bogdanov <jacob@bogdanov.dev>
|
|
114
119
|
- Google, Inc. <no-reply@google.com>
|
|
120
|
+
- Eljees <3.14hell@gmail.com>
|
|
115
121
|
- David Euresti <github@euresti.com>
|
|
116
122
|
- David Douard <david.douard@logilab.fr>
|
|
117
123
|
- David Cain <davidjosephcain@gmail.com>
|
|
124
|
+
- Casey Jones <731937+doctorcolossus@users.noreply.github.com>
|
|
118
125
|
- Anthony Truchet <anthony.truchet@logilab.fr>
|
|
119
126
|
- Anthony Sottile <asottile@umich.edu>
|
|
120
127
|
- Alexander Shadchin <alexandr.shadchin@gmail.com>
|
|
121
|
-
-
|
|
128
|
+
- 00200200 <83299832+00200200@users.noreply.github.com>
|
|
122
129
|
- wgehalo <wgehalo@gmail.com>
|
|
123
130
|
- tejaschauhan36912 <59693377+tejaschauhan36912@users.noreply.github.com>
|
|
131
|
+
- simple-minded <191973953+hakarrr@users.noreply.github.com>
|
|
124
132
|
- sergiochan <yuheng9211@qq.com>
|
|
125
133
|
- rr- <rr-@sakuya.pl>
|
|
126
|
-
- renechoi <115696395+renechoi@users.noreply.github.com>
|
|
127
134
|
- raylu <lurayl@gmail.com>
|
|
128
135
|
- plucury <plucury@gmail.com>
|
|
129
136
|
- pavan-msys <149513767+pavan-msys@users.noreply.github.com>
|
|
@@ -135,28 +142,41 @@ Contributors
|
|
|
135
142
|
- markmcclain <markmcclain@users.noreply.github.com>
|
|
136
143
|
- kdkavanagh-jt <154450911+kdkavanagh-jt@users.noreply.github.com>
|
|
137
144
|
- ioanatia <ioanatia@users.noreply.github.com>
|
|
145
|
+
- inchang-ing <291394088@qq.com>
|
|
146
|
+
- hatemadi15 <hatem.madi15@gmail.com>
|
|
138
147
|
- chuenchen309 <48723787+chuenchen309@users.noreply.github.com>
|
|
139
148
|
- alm <alonme@users.noreply.github.com>
|
|
149
|
+
- adarshsm <adarshmudugal@gmail.com>
|
|
140
150
|
- adam-grant-hendry <59346180+adam-grant-hendry@users.noreply.github.com>
|
|
141
151
|
- aatle <168398276+aatle@users.noreply.github.com>
|
|
142
152
|
- Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
|
|
143
153
|
- Zac Hatfield-Dodds <Zac-HD@users.noreply.github.com>
|
|
154
|
+
- ZIHAN DAI <99155080+PDGGK@users.noreply.github.com>
|
|
144
155
|
- Youngwook Kim <youngwook.kim@gmail.com>
|
|
156
|
+
- Yashas Gunderia <68075205+ychampion@users.noreply.github.com>
|
|
145
157
|
- Yang Fan <2022112761@stu.hit.edu.cn>
|
|
158
|
+
- Xia Jiang <83163060+summeriver13@users.noreply.github.com>
|
|
159
|
+
- Vladislav Y <vladosskins178@gmail.com>
|
|
146
160
|
- Vilnis Termanis <vilnis.termanis@iotics.com>
|
|
161
|
+
- Vasiliy Kulikov <segooon@gmail.com>
|
|
147
162
|
- Valentin Valls <valentin.valls@esrf.fr>
|
|
148
163
|
- Uilian Ries <uilianries@gmail.com>
|
|
149
164
|
- Tomas Novak <ext.Tomas.Novak@skoda-auto.cz>
|
|
150
165
|
- Thirumal Venkat <me@thirumal.in>
|
|
166
|
+
- Tanmay Mohan <tanmaymohan12@gmail.com>
|
|
151
167
|
- SupImDos <62866982+SupImDos@users.noreply.github.com>
|
|
152
168
|
- Stéphane Brunner <stephane.brunner@camptocamp.com>
|
|
153
169
|
- Stanislav Levin <slev@altlinux.org>
|
|
170
|
+
- Sohel Bhongade <bhongadesohel121219@gmail.com>
|
|
154
171
|
- Simon Hewitt <si@sjhewitt.co.uk>
|
|
155
172
|
- Serhiy Storchaka <storchaka@gmail.com>
|
|
173
|
+
- Rızgar Ozan <rizgarozan7@gmail.com>
|
|
156
174
|
- Roy Wright <roy@wright.org>
|
|
175
|
+
- Roman Claudiu (ClaW) <94641613+RClaudiuM@users.noreply.github.com>
|
|
157
176
|
- Robin Jarry <robin.jarry@6wind.com>
|
|
158
177
|
- René Fritze <47802+renefritze@users.noreply.github.com>
|
|
159
178
|
- Redoubts <Redoubts@users.noreply.github.com>
|
|
179
|
+
- Rahul <rahulsingh.ranjan06@gmail.com>
|
|
160
180
|
- Philipp Hörist <philipp@hoerist.com>
|
|
161
181
|
- Peter de Blanc <peter@standard.ai>
|
|
162
182
|
- Peter Talley <peterctalley@gmail.com>
|
|
@@ -175,6 +195,8 @@ Contributors
|
|
|
175
195
|
- MUHAMED FAZAL PS <107547381+muhamedfazalps@users.noreply.github.com>
|
|
176
196
|
- MJSHANG <shangmengjiajiajia@gmail.com>
|
|
177
197
|
- Low, Zhi Hao <lowzhao@gmail.com>
|
|
198
|
+
- Lim Jooyoung <74720422+mmporong@users.noreply.github.com>
|
|
199
|
+
- Liang, Jingyi <619631993@qq.com>
|
|
178
200
|
- Leandro T. C. Melo <ltcmelo@gmail.com>
|
|
179
201
|
- Kyle D Kavanagh <kkavanagh@jumptrading.com>
|
|
180
202
|
- Konrad Weihmann <kweihmann@outlook.com>
|
|
@@ -198,6 +220,7 @@ Contributors
|
|
|
198
220
|
- Iva Miholic <ivamiho@gmail.com>
|
|
199
221
|
- Ionel Maries Cristian <contact@ionelmc.ro>
|
|
200
222
|
- HoverHell <hoverhell@gmail.com>
|
|
223
|
+
- Henrique T <49734286+ego-ipse@users.noreply.github.com>
|
|
201
224
|
- Hashem Nasarat <Hnasar@users.noreply.github.com>
|
|
202
225
|
- Hariharan Agaranallur Ganesan <hariharan.ganesh07@gmail.com>
|
|
203
226
|
- HQupgradeHQ <18361586+HQupgradeHQ@users.noreply.github.com>
|
|
@@ -208,11 +231,13 @@ Contributors
|
|
|
208
231
|
- Genny-oo <156810188+Genny-oo@users.noreply.github.com>
|
|
209
232
|
- Frédéric Chapoton <fchapoton2@gmail.com>
|
|
210
233
|
- Francis Charette Migneault <francis.charette.migneault@gmail.com>
|
|
234
|
+
- Florian Meyer <fflorian.meyer@outlook.com>
|
|
211
235
|
- Felix Mölder <felix.moelder@uni-due.de>
|
|
212
236
|
- Federico Bond <federicobond@gmail.com>
|
|
213
|
-
- Eljees <57435526+Eljees@users.noreply.github.com>
|
|
214
237
|
- DudeNr33 <3929834+DudeNr33@users.noreply.github.com>
|
|
215
238
|
- Dmitry Shachnev <mitya57@users.noreply.github.com>
|
|
239
|
+
- Dipak Chaudhari <111210939+dchaudhari7177@users.noreply.github.com>
|
|
240
|
+
- Devansh Ranjan <222669609+devanshranjan10@users.noreply.github.com>
|
|
216
241
|
- Denis Laxalde <denis.laxalde@logilab.fr>
|
|
217
242
|
- Deepyaman Datta <deepyaman.datta@utexas.edu>
|
|
218
243
|
- David Poirier <david-poirier-csn@users.noreply.github.com>
|
|
@@ -226,8 +251,10 @@ Contributors
|
|
|
226
251
|
- Colin Kennedy <colinvfx@gmail.com>
|
|
227
252
|
- Cole Robinson <crobinso@redhat.com>
|
|
228
253
|
- Christoph Reiter <reiter.christoph@gmail.com>
|
|
254
|
+
- Christian Zinck <christian.zinck@gmail.com>
|
|
229
255
|
- Chris Philip <chrisp533@gmail.com>
|
|
230
256
|
- Charlie Ringström <34444482+Chasarr@users.noreply.github.com>
|
|
257
|
+
- Charan Rathore <180254320+charan-rathore@users.noreply.github.com>
|
|
231
258
|
- BioGeek <jeroen.vangoey@gmail.com>
|
|
232
259
|
- Bianca Power <30207144+biancapower@users.noreply.github.com>
|
|
233
260
|
- Benjamin Elven <25181435+S3ntinelX@users.noreply.github.com>
|
|
@@ -241,11 +268,12 @@ Contributors
|
|
|
241
268
|
- Artsiom Kaval <lezeroq@gmail.com>
|
|
242
269
|
- Anubhav <35621759+anubh-v@users.noreply.github.com>
|
|
243
270
|
- Antoine Boellinger <aboellinger@hotmail.com>
|
|
271
|
+
- Ansh Rohilla <anshrohilla.b81@gmail.com>
|
|
244
272
|
- Alphadelta14 <alpha@alphaservcomputing.solutions>
|
|
245
273
|
- Alexander Scheel <alexander.m.scheel@gmail.com>
|
|
246
274
|
- Alexander Presnyakov <flagist0@gmail.com>
|
|
275
|
+
- Alberto <214285136+aipd506@users.noreply.github.com>
|
|
247
276
|
- Ahmed Azzaoui <ahmed.azzaoui@engie.com>
|
|
248
|
-
- Florian Meyer <fflorian.meyer@outlook.com>
|
|
249
277
|
|
|
250
278
|
Co-Author
|
|
251
279
|
---------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: astroid
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.4.0
|
|
4
4
|
Summary: An abstract syntax tree for Python with inference support.
|
|
5
5
|
License-Expression: LGPL-2.1-or-later
|
|
6
6
|
Project-URL: Bug tracker, https://github.com/pylint-dev/astroid/issues
|
|
@@ -14,7 +14,6 @@ Classifier: Intended Audience :: Developers
|
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
15
15
|
Classifier: Programming Language :: Python
|
|
16
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
@@ -24,11 +23,10 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
|
24
23
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
25
24
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
26
25
|
Classifier: Topic :: Software Development :: Testing
|
|
27
|
-
Requires-Python: >=3.
|
|
26
|
+
Requires-Python: >=3.11.0
|
|
28
27
|
Description-Content-Type: text/x-rst
|
|
29
28
|
License-File: LICENSE
|
|
30
29
|
License-File: CONTRIBUTORS.txt
|
|
31
|
-
Requires-Dist: typing-extensions>=4; python_version < "3.11"
|
|
32
30
|
Dynamic: license-file
|
|
33
31
|
|
|
34
32
|
Astroid
|
|
@@ -10,11 +10,11 @@ from __future__ import annotations
|
|
|
10
10
|
|
|
11
11
|
import collections
|
|
12
12
|
import collections.abc
|
|
13
|
+
import copy
|
|
13
14
|
from collections.abc import Iterable, Iterator
|
|
14
15
|
from typing import TYPE_CHECKING, Any, Literal
|
|
15
16
|
|
|
16
17
|
from astroid import decorators, nodes
|
|
17
|
-
from astroid.const import PY311_PLUS
|
|
18
18
|
from astroid.context import (
|
|
19
19
|
CallContext,
|
|
20
20
|
InferenceContext,
|
|
@@ -39,10 +39,12 @@ if TYPE_CHECKING:
|
|
|
39
39
|
from astroid.constraint import Constraint
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
PROPERTIES = {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
PROPERTIES = {
|
|
43
|
+
"builtins.property",
|
|
44
|
+
"abc.abstractproperty",
|
|
45
|
+
"functools.cached_property",
|
|
46
|
+
"enum.property",
|
|
47
|
+
}
|
|
46
48
|
|
|
47
49
|
# List of possible property names. We use this list in order
|
|
48
50
|
# to see if a method is a property or not. This should be
|
|
@@ -70,6 +72,14 @@ POSSIBLE_PROPERTIES = {
|
|
|
70
72
|
def _is_property(
|
|
71
73
|
meth: nodes.FunctionDef | UnboundMethod, context: InferenceContext | None = None
|
|
72
74
|
) -> bool:
|
|
75
|
+
# An UnboundMethod can proxy a Lambda (a lambda already bound to an
|
|
76
|
+
# instance, like ``A().f``, then assigned in another class body) or even
|
|
77
|
+
# Uninferable, neither of which can carry decorators.
|
|
78
|
+
target = meth
|
|
79
|
+
while isinstance(target, UnboundMethod):
|
|
80
|
+
target = target._proxied
|
|
81
|
+
if not isinstance(target, nodes.FunctionDef):
|
|
82
|
+
return False
|
|
73
83
|
decoratornames = meth.decoratornames(context=context)
|
|
74
84
|
if PROPERTIES.intersection(decoratornames):
|
|
75
85
|
return True
|
|
@@ -78,7 +88,11 @@ def _is_property(
|
|
|
78
88
|
for name in decoratornames
|
|
79
89
|
if not isinstance(name, UninferableBase)
|
|
80
90
|
}
|
|
81
|
-
|
|
91
|
+
# The names are only a guess, and a property-like decorator only makes
|
|
92
|
+
# sense in a class body: a function elsewhere stays a function.
|
|
93
|
+
if any(name in stripped for name in POSSIBLE_PROPERTIES) and isinstance(
|
|
94
|
+
meth.parent.frame(), nodes.ClassDef
|
|
95
|
+
):
|
|
82
96
|
return True
|
|
83
97
|
|
|
84
98
|
if not meth.decorators:
|
|
@@ -180,7 +194,12 @@ def _infer_stmts(
|
|
|
180
194
|
try:
|
|
181
195
|
stmt_constraints: set[Constraint] = set()
|
|
182
196
|
for constraint_stmt, potential_constraints in constraints.items():
|
|
183
|
-
|
|
197
|
+
# pylint: disable-next=import-outside-toplevel
|
|
198
|
+
from astroid.constraint import constraint_applies
|
|
199
|
+
|
|
200
|
+
# Every constraint of the mapping is generated for the same node.
|
|
201
|
+
(expr,) = {constraint.node for constraint in potential_constraints}
|
|
202
|
+
if constraint_applies(constraint_stmt, stmt, expr):
|
|
184
203
|
stmt_constraints.update(potential_constraints)
|
|
185
204
|
for inf in stmt.infer(context=context):
|
|
186
205
|
if all(
|
|
@@ -329,13 +348,6 @@ class BaseInstance(Proxy):
|
|
|
329
348
|
context = bind_context_to_node(context, self)
|
|
330
349
|
inferred = False
|
|
331
350
|
|
|
332
|
-
# If the call is an attribute on the instance, we infer the attribute itself
|
|
333
|
-
if isinstance(caller, nodes.Call) and isinstance(caller.func, nodes.Attribute):
|
|
334
|
-
for res in self.igetattr(caller.func.attrname, context):
|
|
335
|
-
inferred = True
|
|
336
|
-
yield res
|
|
337
|
-
|
|
338
|
-
# Otherwise we infer the call to the __call__ dunder normally
|
|
339
351
|
for node in self._proxied.igetattr("__call__", context):
|
|
340
352
|
if isinstance(node, UninferableBase) or not node.callable():
|
|
341
353
|
continue
|
|
@@ -344,6 +356,11 @@ class BaseInstance(Proxy):
|
|
|
344
356
|
yield node
|
|
345
357
|
# Prevent recursion.
|
|
346
358
|
continue
|
|
359
|
+
if context.callcontext:
|
|
360
|
+
# Arguments belong to __call__, not to the instance's class.
|
|
361
|
+
# The incoming CallContext is shared with the caller.
|
|
362
|
+
context.callcontext = copy.copy(context.callcontext)
|
|
363
|
+
context.callcontext.callee = node
|
|
347
364
|
for res in node.infer_call_result(caller, context):
|
|
348
365
|
inferred = True
|
|
349
366
|
yield res
|
|
@@ -442,7 +459,7 @@ class Instance(BaseInstance):
|
|
|
442
459
|
class UnboundMethod(Proxy):
|
|
443
460
|
"""A special node representing a method not bound to an instance."""
|
|
444
461
|
|
|
445
|
-
_proxied: nodes.FunctionDef | UnboundMethod
|
|
462
|
+
_proxied: nodes.FunctionDef | nodes.Lambda | UnboundMethod | UninferableBase
|
|
446
463
|
|
|
447
464
|
special_attributes: (
|
|
448
465
|
objectmodel.BoundMethodModel | objectmodel.UnboundMethodModel
|
|
@@ -192,17 +192,19 @@ def on_bootstrap():
|
|
|
192
192
|
)
|
|
193
193
|
|
|
194
194
|
|
|
195
|
-
def
|
|
195
|
+
def _builtin_dispatch_predicate(node: nodes.Call) -> bool:
|
|
196
196
|
# pylint: disable = too-many-boolean-expressions
|
|
197
|
+
# This runs on every Call node, so the checks are ordered by cost: each one
|
|
198
|
+
# is a constant-time attribute or type check, except ``node.root()``, which
|
|
199
|
+
# walks up every parent to the module and must stay last.
|
|
197
200
|
if (
|
|
198
|
-
|
|
199
|
-
and node.root().name == "re"
|
|
200
|
-
and isinstance(node.func, nodes.Name)
|
|
201
|
+
isinstance(node.func, nodes.Name)
|
|
201
202
|
and node.func.name == "type"
|
|
202
203
|
and isinstance(node.parent, nodes.Assign)
|
|
203
204
|
and len(node.parent.targets) == 1
|
|
204
205
|
and isinstance(node.parent.targets[0], nodes.AssignName)
|
|
205
206
|
and node.parent.targets[0].name in {"Pattern", "Match"}
|
|
207
|
+
and node.root().name == "re"
|
|
206
208
|
):
|
|
207
209
|
# Handle re.Pattern and re.Match in brain_re
|
|
208
210
|
# Match these patterns from stdlib/re.py
|
|
@@ -212,7 +214,7 @@ def _builtin_filter_predicate(node, builtin_name) -> bool:
|
|
|
212
214
|
# ```
|
|
213
215
|
return False
|
|
214
216
|
if isinstance(node.func, nodes.Name):
|
|
215
|
-
return node.func.name
|
|
217
|
+
return node.func.name in _BUILTIN_INFERENCE_FUNCS
|
|
216
218
|
if isinstance(node.func, nodes.Attribute):
|
|
217
219
|
return (
|
|
218
220
|
node.func.attrname == "fromkeys"
|
|
@@ -222,39 +224,30 @@ def _builtin_filter_predicate(node, builtin_name) -> bool:
|
|
|
222
224
|
return False
|
|
223
225
|
|
|
224
226
|
|
|
225
|
-
def
|
|
226
|
-
|
|
227
|
-
) ->
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
if hasattr(result, "col_offset") and result.col_offset is None:
|
|
250
|
-
result.col_offset = node.col_offset
|
|
251
|
-
return iter([result])
|
|
252
|
-
|
|
253
|
-
manager.register_transform(
|
|
254
|
-
nodes.Call,
|
|
255
|
-
inference_tip(_transform_wrapper),
|
|
256
|
-
partial(_builtin_filter_predicate, builtin_name=builtin_name),
|
|
257
|
-
)
|
|
227
|
+
def _builtin_dispatch_transform(
|
|
228
|
+
node: nodes.Call, context: InferenceContext | None = None
|
|
229
|
+
) -> Iterator:
|
|
230
|
+
func = node.func
|
|
231
|
+
if isinstance(func, nodes.Name):
|
|
232
|
+
builtin_name = func.name
|
|
233
|
+
else:
|
|
234
|
+
builtin_name = "dict.fromkeys"
|
|
235
|
+
transform = _BUILTIN_INFERENCE_FUNCS[builtin_name]
|
|
236
|
+
result = transform(node, context=context)
|
|
237
|
+
if result:
|
|
238
|
+
if not result.parent:
|
|
239
|
+
# Let the transformation function determine
|
|
240
|
+
# the parent for its result. Otherwise,
|
|
241
|
+
# we set it to be the node we transformed from.
|
|
242
|
+
result.parent = node
|
|
243
|
+
|
|
244
|
+
if result.lineno is None:
|
|
245
|
+
result.lineno = node.lineno
|
|
246
|
+
# Can be a 'Module' see https://github.com/pylint-dev/pylint/issues/4671
|
|
247
|
+
# We don't have a regression test on this one: be careful
|
|
248
|
+
if hasattr(result, "col_offset") and result.col_offset is None:
|
|
249
|
+
result.col_offset = node.col_offset
|
|
250
|
+
return iter([result])
|
|
258
251
|
|
|
259
252
|
|
|
260
253
|
def _container_generic_inference(
|
|
@@ -530,8 +523,13 @@ def infer_super(
|
|
|
530
523
|
raise UseInferenceDefault
|
|
531
524
|
|
|
532
525
|
cls = scoped_nodes.get_wrapping_class(scope)
|
|
533
|
-
assert cls is not None
|
|
534
526
|
if not node.args:
|
|
527
|
+
if cls is None:
|
|
528
|
+
# A ``classmethod`` or ``method`` that is not defined inside a
|
|
529
|
+
# class, e.g. a module level function decorated with
|
|
530
|
+
# ``@classmethod``: there is nothing for the zero argument
|
|
531
|
+
# form to refer to.
|
|
532
|
+
raise UseInferenceDefault
|
|
535
533
|
mro_pointer = cls
|
|
536
534
|
mro_owner = _mro_owner(cls, context)
|
|
537
535
|
# In we are in a classmethod, the interpreter will fill
|
|
@@ -794,12 +792,14 @@ def _infer_object__new__decorator_check(node) -> bool:
|
|
|
794
792
|
return False
|
|
795
793
|
|
|
796
794
|
|
|
797
|
-
def infer_issubclass(
|
|
795
|
+
def infer_issubclass(
|
|
796
|
+
callnode: nodes.Call, context: InferenceContext | None = None
|
|
797
|
+
) -> nodes.Const:
|
|
798
798
|
"""Infer issubclass() calls.
|
|
799
799
|
|
|
800
|
-
:param
|
|
801
|
-
:param
|
|
802
|
-
:
|
|
800
|
+
:param callnode: an `issubclass` call
|
|
801
|
+
:param context: the context for the inference
|
|
802
|
+
:returns: Boolean Const value of the `issubclass` call
|
|
803
803
|
:raises UseInferenceDefault: If the node cannot be inferred
|
|
804
804
|
"""
|
|
805
805
|
call = arguments.CallSite.from_call(callnode, context=context)
|
|
@@ -844,7 +844,7 @@ def infer_isinstance(
|
|
|
844
844
|
) -> nodes.Const:
|
|
845
845
|
"""Infer isinstance calls.
|
|
846
846
|
|
|
847
|
-
:param
|
|
847
|
+
:param callnode: an isinstance call
|
|
848
848
|
:raises UseInferenceDefault: If the node cannot be inferred
|
|
849
849
|
"""
|
|
850
850
|
call = arguments.CallSite.from_call(callnode, context=context)
|
|
@@ -876,12 +876,12 @@ def infer_isinstance(
|
|
|
876
876
|
return nodes.Const(isinstance_bool)
|
|
877
877
|
|
|
878
878
|
|
|
879
|
-
def infer_len(node, context: InferenceContext | None = None) -> nodes.Const:
|
|
879
|
+
def infer_len(node: nodes.Call, context: InferenceContext | None = None) -> nodes.Const:
|
|
880
880
|
"""Infer length calls.
|
|
881
881
|
|
|
882
|
-
:param
|
|
883
|
-
:param context
|
|
884
|
-
:
|
|
882
|
+
:param node: len call to infer
|
|
883
|
+
:param context: node context
|
|
884
|
+
:returns: a Const node with the inferred length, if possible
|
|
885
885
|
"""
|
|
886
886
|
call = arguments.CallSite.from_call(node, context=context)
|
|
887
887
|
if call.keyword_arguments:
|
|
@@ -899,12 +899,12 @@ def infer_len(node, context: InferenceContext | None = None) -> nodes.Const:
|
|
|
899
899
|
raise UseInferenceDefault(str(exc)) from exc
|
|
900
900
|
|
|
901
901
|
|
|
902
|
-
def infer_str(node, context: InferenceContext | None = None) -> nodes.Const:
|
|
902
|
+
def infer_str(node: nodes.Call, context: InferenceContext | None = None) -> nodes.Const:
|
|
903
903
|
"""Infer str() calls.
|
|
904
904
|
|
|
905
|
-
:param
|
|
906
|
-
:param context
|
|
907
|
-
:
|
|
905
|
+
:param node: str() call to infer
|
|
906
|
+
:param context: node context
|
|
907
|
+
:returns:
|
|
908
908
|
a Const containing a stringified value of str() call if possible, else an empty string
|
|
909
909
|
"""
|
|
910
910
|
call = arguments.CallSite.from_call(node, context=context)
|
|
@@ -935,12 +935,12 @@ def infer_str(node, context: InferenceContext | None = None) -> nodes.Const:
|
|
|
935
935
|
return fallback
|
|
936
936
|
|
|
937
937
|
|
|
938
|
-
def infer_int(node, context: InferenceContext | None = None):
|
|
938
|
+
def infer_int(node: nodes.Call, context: InferenceContext | None = None) -> nodes.Const:
|
|
939
939
|
"""Infer int() calls.
|
|
940
940
|
|
|
941
|
-
:param
|
|
942
|
-
:param context
|
|
943
|
-
:
|
|
941
|
+
:param node: int() call to infer
|
|
942
|
+
:param context: node context
|
|
943
|
+
:returns: a Const containing the integer value of the int() call
|
|
944
944
|
"""
|
|
945
945
|
call = arguments.CallSite.from_call(node, context=context)
|
|
946
946
|
if call.keyword_arguments:
|
|
@@ -967,12 +967,14 @@ def infer_int(node, context: InferenceContext | None = None):
|
|
|
967
967
|
return nodes.Const(0)
|
|
968
968
|
|
|
969
969
|
|
|
970
|
-
def infer_dict_fromkeys(
|
|
970
|
+
def infer_dict_fromkeys(
|
|
971
|
+
node: nodes.Call, context: InferenceContext | None = None
|
|
972
|
+
) -> nodes.Dict:
|
|
971
973
|
"""Infer dict.fromkeys.
|
|
972
974
|
|
|
973
|
-
:param
|
|
974
|
-
:param context
|
|
975
|
-
:
|
|
975
|
+
:param node: dict.fromkeys() call to infer
|
|
976
|
+
:param context: node context
|
|
977
|
+
:returns:
|
|
976
978
|
a Dictionary containing the values that astroid was able to infer.
|
|
977
979
|
In case the inference failed for any reason, an empty dictionary
|
|
978
980
|
will be inferred instead.
|
|
@@ -1153,27 +1155,43 @@ def _infer_str_format_call(
|
|
|
1153
1155
|
return iter([nodes.const_factory(formatted_string)])
|
|
1154
1156
|
|
|
1155
1157
|
|
|
1158
|
+
# Mapping of builtin name → inference function, consumed by the single
|
|
1159
|
+
# dispatcher transform registered for ``nodes.Call``. One transform-list entry
|
|
1160
|
+
# per builtin would run its own predicate on every Call node; the dispatcher
|
|
1161
|
+
# does the ``isinstance``/name lookup once and routes via this dict.
|
|
1162
|
+
_BuiltinInferFn = Callable[
|
|
1163
|
+
[nodes.Call, InferenceContext | None], SuccessfulInferenceResult | None
|
|
1164
|
+
]
|
|
1165
|
+
_BUILTIN_INFERENCE_FUNCS: dict[str, _BuiltinInferFn] = {
|
|
1166
|
+
"bool": infer_bool,
|
|
1167
|
+
"super": infer_super,
|
|
1168
|
+
"callable": infer_callable,
|
|
1169
|
+
"property": infer_property,
|
|
1170
|
+
"getattr": infer_getattr,
|
|
1171
|
+
"hasattr": infer_hasattr,
|
|
1172
|
+
"tuple": infer_tuple,
|
|
1173
|
+
"set": infer_set,
|
|
1174
|
+
"list": infer_list,
|
|
1175
|
+
"dict": infer_dict,
|
|
1176
|
+
"frozenset": infer_frozenset,
|
|
1177
|
+
"type": infer_type,
|
|
1178
|
+
"slice": infer_slice,
|
|
1179
|
+
"isinstance": infer_isinstance,
|
|
1180
|
+
"issubclass": infer_issubclass,
|
|
1181
|
+
"len": infer_len,
|
|
1182
|
+
"str": infer_str,
|
|
1183
|
+
"int": infer_int,
|
|
1184
|
+
"dict.fromkeys": infer_dict_fromkeys,
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
|
|
1156
1188
|
def register(manager: AstroidManager) -> None:
|
|
1157
|
-
# Builtins inference
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
register_builtin_transform(manager, infer_hasattr, "hasattr")
|
|
1164
|
-
register_builtin_transform(manager, infer_tuple, "tuple")
|
|
1165
|
-
register_builtin_transform(manager, infer_set, "set")
|
|
1166
|
-
register_builtin_transform(manager, infer_list, "list")
|
|
1167
|
-
register_builtin_transform(manager, infer_dict, "dict")
|
|
1168
|
-
register_builtin_transform(manager, infer_frozenset, "frozenset")
|
|
1169
|
-
register_builtin_transform(manager, infer_type, "type")
|
|
1170
|
-
register_builtin_transform(manager, infer_slice, "slice")
|
|
1171
|
-
register_builtin_transform(manager, infer_isinstance, "isinstance")
|
|
1172
|
-
register_builtin_transform(manager, infer_issubclass, "issubclass")
|
|
1173
|
-
register_builtin_transform(manager, infer_len, "len")
|
|
1174
|
-
register_builtin_transform(manager, infer_str, "str")
|
|
1175
|
-
register_builtin_transform(manager, infer_int, "int")
|
|
1176
|
-
register_builtin_transform(manager, infer_dict_fromkeys, "dict.fromkeys")
|
|
1189
|
+
# Builtins inference, through a single dispatcher (#1115)
|
|
1190
|
+
manager.register_transform(
|
|
1191
|
+
nodes.Call,
|
|
1192
|
+
inference_tip(_builtin_dispatch_transform),
|
|
1193
|
+
_builtin_dispatch_predicate,
|
|
1194
|
+
)
|
|
1177
1195
|
|
|
1178
1196
|
# Infer object.__new__ calls
|
|
1179
1197
|
manager.register_transform(
|
|
@@ -57,11 +57,19 @@ def enrich_ctypes_redefined_types() -> nodes.Module:
|
|
|
57
57
|
("c_wchar", "str", "u"),
|
|
58
58
|
)
|
|
59
59
|
|
|
60
|
+
# The value each type holds when it is built without argument
|
|
61
|
+
builtin_type_to_default = {
|
|
62
|
+
"bytes": r"b'\x00'",
|
|
63
|
+
"float": "0.0",
|
|
64
|
+
"int": "0",
|
|
65
|
+
"str": r"'\x00'",
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
src = ["""
|
|
61
69
|
from _ctypes import _SimpleCData
|
|
62
70
|
|
|
63
71
|
class c_bool(_SimpleCData):
|
|
64
|
-
def __init__(self, value):
|
|
72
|
+
def __init__(self, value=False):
|
|
65
73
|
self.value = True
|
|
66
74
|
self._type_ = '?'
|
|
67
75
|
"""]
|
|
@@ -69,7 +77,7 @@ class c_bool(_SimpleCData):
|
|
|
69
77
|
for c_type, builtin_type, type_code in c_class_to_type:
|
|
70
78
|
src.append(f"""
|
|
71
79
|
class {c_type}(_SimpleCData):
|
|
72
|
-
def __init__(self, value):
|
|
80
|
+
def __init__(self, value={builtin_type_to_default[builtin_type]}):
|
|
73
81
|
self.value = {builtin_type}(value)
|
|
74
82
|
self._type_ = '{type_code}'
|
|
75
83
|
""")
|