| /external/pytorch/ |
| D | mypy.ini | 1 # This is the PyTorch mypy.ini file (note: don't change this line! - 4 [mypy] section 58 [mypy-torch._C._jit_tree_views] argument 61 [mypy-torch.for_onnx.onnx] 64 [mypy-torch.ao.quantization.experimental.apot_utils] 67 [mypy-torch.ao.quantization.experimental.quantizer] 70 [mypy-torch.ao.quantization.experimental.observer] 73 [mypy-torch.ao.quantization.experimental.APoT_tensor] 76 [mypy-torch.ao.quantization.experimental.fake_quantize_function] 79 [mypy-torch.ao.quantization.experimental.fake_quantize] [all …]
|
| D | mypy-strict.ini | 1 # This is the PyTorch mypy-strict.ini file (note: don't change this line! - 4 # Unlike mypy.ini, it enforces very strict typing rules. The intention is for 5 # this config file to be used to ENFORCE that people are using mypy on codegen 8 [mypy] section 40 [mypy-torch.utils.benchmark.utils.*] argument 44 [mypy-torch] 47 [mypy-torch.*] 52 [mypy-numpy] 55 [mypy-sympy] 58 [mypy-sympy.*] [all …]
|
| /external/python/typing/docs/source/ |
| D | quality.rst | 20 For simplicity, we will assume that type-checking is done with ``mypy``. 23 Testing Using ``mypy --warn-unused-ignores`` 31 ``mypy --warn-unused-ignores`` is run on these files, it should pass. 55 Checking ``reveal_type`` output from ``mypy.api.run`` 58 ``mypy`` provides a subpackage named ``api`` for invoking ``mypy`` from a 65 experience, and it runs mypy once per test case (which can be slow). 66 However, it builds only on ``mypy`` and the test framework of your choice. 74 from mypy import api 113 For more details, see `the documentation on mypy.api 114 <https://mypy.readthedocs.io/en/stable/extending_mypy.html#integrating-mypy-into-another-python-app… [all …]
|
| /external/scapy/.config/mypy/ |
| D | mypy.ini | 1 [mypy] section 5 [mypy-scapy.libs.winpcapy] 9 [mypy-scapy.libs.rfc3961] 14 [mypy-scapy.arch.*] 17 [mypy-scapy.layers.*,scapy.contrib.*] 22 [mypy-IPython] 25 [mypy-colorama] 28 [mypy-traitlets.config.loader] 31 [mypy-pyx] 34 [mypy-matplotlib.lines] [all …]
|
| D | mypy_check.py | 12 # Because we are rolling out mypy tests progressively, 14 # mypy doesn't check consistency between the imports (different files). 23 from mypy.main import main as mypy_main 46 # Generate mypy arguments 66 "--config-file=" + os.path.abspath(os.path.join(localdir, "mypy.ini")), 115 # Run mypy over the files
|
| /external/python/pyfakefs/ |
| D | mypy.ini | 1 [mypy] section 6 [mypy-django.*] argument 9 [mypy-hotshot.*] 12 [mypy-openpyxl.*] 15 [mypy-pandas.*] 18 [mypy-pathlib2.*] 21 [mypy-psyco.*] 24 [mypy-scandir.*] 27 [mypy-setuptools.*] 30 [mypy-xlrd.*]
|
| /external/trusty/arm-trusted-firmware/tools/cot_dt2c/ |
| D | poetry.lock | 25 …rk = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-codsp… 26 …le", "coverage[toml] (>=5.3)", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "py… 27 dev = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pre-commit", "pympler", "pytest (>=4.3.0)",… 29 tests = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-myp… 30 tests-mypy = ["mypy (>=1.11.1)", "pytest-mypy-plugins"] 129 name = "mypy" 135 …{file = "mypy-0.910-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:a155d80ea6cee511a3694b108c4… 136 …{file = "mypy-0.910-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:b94e4b785e304a04ea0828759172… 137 …{file = "mypy-0.910-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:088cd9c7904b4ad80bec81105… 138 …{file = "mypy-0.910-cp35-cp35m-win_amd64.whl", hash = "sha256:adaeee09bfde366d2c13fe6093a7df5df83c… [all …]
|
| /external/python/cpython3/.github/workflows/ |
| D | mypy.yml | 1 # Workflow to run mypy on select parts of the CPython repo 2 name: mypy 10 - ".github/workflows/mypy.yml" 28 …term-256color # needed for FORCE_COLOR to work on mypy on Ubuntu, see https://github.com/python/m… 35 mypy: 49 name: Run mypy on ${{ matrix.target }} 60 - run: mypy --config-file ${{ matrix.target }}/mypy.ini
|
| /external/pytorch/mypy_plugins/ |
| D | check_mypy_version.py | 5 from mypy.plugin import Plugin 11 r"mypy==(\d+(?:\.\d+)*)", 25 You are using mypy version {version}, which is not supported 26 in the PyTorch repo. Please switch to mypy version {correct_version}. 28 For example, if you installed mypy via pip, run this: 30 pip install mypy=={correct_version} 32 Or if you installed mypy via conda, run this: 34 conda install -c conda-forge mypy={correct_version}
|
| D | sympy_mypy_plugin.py | 1 from mypy.plugin import Plugin 2 from mypy.plugins.common import add_attribute_to_class 3 from mypy.types import NoneType, UnionType 15 # (do not import sympy to speedup mypy plugin load time)
|
| /external/pytorch/test/ |
| D | test_type_hints.py | 1 # mypy: allow-untyped-defs 16 import mypy.api 45 "# mypy: allow-untyped-defs", 88 @unittest.skipIf(not HAVE_MYPY, "need mypy") 91 Run documentation examples through mypy. 96 # OK, so here's the deal. mypy treats installed packages 98 # mypy will refuse to use modules from that package for type 101 # https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports 109 # although mypy will work directly if you are working in source, 119 # If you want to run mypy by hand, and you run from PyTorch [all …]
|
| /external/python/bumble/ |
| D | pyproject.toml | 57 [tool.mypy] 60 [[tool.mypy.overrides]] 64 [[tool.mypy.overrides]] 68 [[tool.mypy.overrides]] 72 [[tool.mypy.overrides]] 76 [[tool.mypy.overrides]] 80 [[tool.mypy.overrides]] 84 [[tool.mypy.overrides]]
|
| /external/python/cpython3/Lib/_pyrepl/ |
| D | mypy.ini | 1 # Config file for running mypy on _pyrepl. 2 # Run mypy by invoking `mypy --config-file Lib/_pyrepl/mypy.ini` 5 [mypy] section 23 [mypy-_abc.*,_opcode.*,_overlapped.*,_testcapi.*,_testinternalcapi.*,test.*] argument
|
| /external/python/cpython3/Lib/test/libregrtest/ |
| D | mypy.ini | 1 # Config file for running mypy on libregrtest. 2 # Run mypy by invoking `mypy --config-file Lib/test/libregrtest/mypy.ini` 5 [mypy] section 25 [mypy-_abc.*,_opcode.*,_overlapped.*,_testcapi.*,_testinternalcapi.*,test.*] argument
|
| /external/mbedtls/tests/scripts/ |
| D | check-python-files.sh | 8 # coding standards. Run mypy to perform static type checking. 40 # mypy 0.770 is too old: 42 # mypy 0.780 from pip passed on the first commit containing this line. 43 check_version mypy.version 0.780 52 elif [ "$1" = "--can-mypy" ]; then 64 echo 'Running mypy ...' 65 $PYTHON -m mypy scripts/*.py tests/scripts/*.py ||
|
| /external/openthread/third_party/mbedtls/repo/tests/scripts/ |
| D | check-python-files.sh | 8 # coding standards. Run mypy to perform static type checking. 40 # mypy 0.770 is too old: 42 # mypy 0.780 from pip passed on the first commit containing this line. 43 check_version mypy.version 0.780 52 elif [ "$1" = "--can-mypy" ]; then 64 echo 'Running mypy ...' 65 $PYTHON -m mypy scripts/*.py tests/scripts/*.py ||
|
| /external/python/watchdog/ |
| D | tox.ini | 44 python -m mypy docs/source/examples 45 python -m mypy src 48 python -m mypy --platform darwin --disable-error-code unused-ignore \ 51 python -m mypy --platform freebsd --disable-error-code unused-ignore \ 53 python -m mypy --platform linux --disable-error-code unused-ignore \ 57 python -m mypy --platform win32 --disable-error-code unused-ignore \
|
| /external/python/cpython3/Tools/peg_generator/ |
| D | Makefile | 11 MYPY ?= ./venv/bin/mypy macro 35 $(VENVPYTHON) -m pip install -U pip setuptools black mypy 38 mypy: regen-metaparser target 39 $(MYPY) # For list of files, see mypy.ini
|
| /external/pytorch/tools/linter/adapters/ |
| D | mypy_linter.py | 92 # https://github.com/python/mypy/blob/8b47a032e1317fb8e3f9a818005a6b63e9bf0311/mypy/errors.py#L46-L… 128 # file names, see https://github.com/python/mypy/issues/16768 186 description="mypy wrapper linter.", 193 help="times to retry timed out mypy", 198 help="path to an mypy .ini config file", 202 default="MYPY", 227 # Use a dictionary here to preserve order. mypy cares about order, 228 # tragically, e.g. https://github.com/python/mypy/issues/2015 231 # If a stub file exists, have mypy check it instead of the original file, in
|
| /external/pandora/avatar/ |
| D | pyproject.toml | 31 "mypy==1.5.1", 69 [tool.mypy] 74 [[tool.mypy.overrides]] 78 [[tool.mypy.overrides]] 82 [[tool.mypy.overrides]] 86 [[tool.mypy.overrides]]
|
| /external/toolchain-utils/toolchain_utils_githooks/ |
| D | check-presubmit.py | 40 # For type checking Python code, we also need mypy. This isn't 42 # so we don't pull the dependency in unless needed, and (2) mypy 72 # The files and directories on which we run the mypy typechecker. The paths are 135 """An invocation of mypy.""" 144 """Finds the mypy executable and returns a command to invoke it. 146 If mypy cannot be found and we're inside the chroot, this 147 function installs mypy and returns a command to invoke it. 149 If mypy cannot be found and we're outside the chroot, this 154 - the command to invoke mypy, and 155 - any environment variables to set when invoking mypy [all …]
|
| D | check-presubmit | 40 # For type checking Python code, we also need mypy. This isn't 42 # so we don't pull the dependency in unless needed, and (2) mypy 72 # The files and directories on which we run the mypy typechecker. The paths are 135 """An invocation of mypy.""" 144 """Finds the mypy executable and returns a command to invoke it. 146 If mypy cannot be found and we're inside the chroot, this 147 function installs mypy and returns a command to invoke it. 149 If mypy cannot be found and we're outside the chroot, this 154 - the command to invoke mypy, and 155 - any environment variables to set when invoking mypy [all …]
|
| /external/python/python-api-core/.github/workflows/ |
| D | mypy.yml | 5 name: mypy 7 mypy: 20 - name: Run mypy 22 nox -s mypy
|
| /external/python/rsa/tests/ |
| D | test_mypy.py | 4 import mypy.api 15 result = mypy.api.run(args) 25 messages.append('Mypy failed with status %d' % status) 27 self.fail('\n'.join(['Mypy errors:'] + messages))
|
| /external/pigweed/pw_build/ |
| D | python.gni | 36 "mypy", 59 # This applies to mypy, pylint, ruff and tests. 71 "lint.mypy", 96 # Internal template that runs Mypy. 99 module = "mypy" 101 # DOCSTAG: [default-mypy-args] 106 # Use a mypy cache dir for this target only to avoid cache conflicts in 107 # parallel mypy invocations. 112 # Use this environment variable to force mypy to colorize output. 113 # See https://github.com/python/mypy/issues/7771 [all …]
|