|
4771 | 4771 | "code": "truthy-bool",
|
4772 | 4772 | "column": 11,
|
4773 | 4773 | "message": "Member \"options\" has type \"Options\" which does not implement __bool__ or __len__ so it could always be true in boolean context",
|
4774 |
| - "offset": 735, |
| 4774 | + "offset": 738, |
4775 | 4775 | "src": "if self.options:",
|
4776 | 4776 | "target": "mypy.errors.Errors.is_error_code_enabled"
|
4777 | 4777 | },
|
|
4787 | 4787 | "code": "truthy-bool",
|
4788 | 4788 | "column": 69,
|
4789 | 4789 | "message": "Member \"options\" has type \"Options\" which does not implement __bool__ or __len__ so it could always be true in boolean context",
|
4790 |
| - "offset": 52, |
| 4790 | + "offset": 53, |
4791 | 4791 | "src": "is_typeshed_file(self.options.abs_custom_typeshed_dir if self.options else None, file)",
|
4792 | 4792 | "target": "mypy.errors.Errors.generate_ignore_without_code_errors"
|
4793 | 4793 | },
|
4794 | 4794 | {
|
4795 | 4795 | "code": "unreachable",
|
4796 | 4796 | "column": 16,
|
4797 | 4797 | "message": "Statement is unreachable",
|
4798 |
| - "offset": 374, |
| 4798 | + "offset": 379, |
4799 | 4799 | "src": "result.append(",
|
4800 | 4800 | "target": "mypy.errors.Errors.render_messages"
|
4801 | 4801 | }
|
|
7305 | 7305 | "code": "no-any-expr",
|
7306 | 7306 | "column": 16,
|
7307 | 7307 | "message": "Expression type contains \"Any\" (has type \"list[Any]\")",
|
7308 |
| - "offset": 254, |
| 7308 | + "offset": 257, |
7309 | 7309 | "src": "default=[],",
|
7310 | 7310 | "target": "mypy.main.process_options"
|
7311 | 7311 | },
|
|
7337 | 7337 | "code": "no-any-expr",
|
7338 | 7338 | "column": 67,
|
7339 | 7339 | "message": "Expression type contains \"Any\" (has type \"list[Any]\")",
|
7340 |
| - "offset": 283, |
| 7340 | + "offset": 285, |
7341 | 7341 | "src": "\"--package-root\", metavar=\"ROOT\", action=\"append\", default=[], help=argparse.SUPPRESS",
|
7342 | 7342 | "target": "mypy.main.process_options"
|
7343 | 7343 | },
|
|
7417 | 7417 | "code": "no-any-expr",
|
7418 | 7418 | "column": 11,
|
7419 | 7419 | "message": "Expression type contains \"Any\" (has type \"dict[str, Any]\")",
|
7420 |
| - "offset": 20, |
| 7420 | + "offset": 22, |
7421 | 7421 | "src": "if not dummy.__dict__[\"special-opts:strict\"]:",
|
7422 | 7422 | "target": "mypy.main.process_options"
|
7423 | 7423 | },
|
|
7433 | 7433 | "code": "no-any-expr",
|
7434 | 7434 | "column": 49,
|
7435 | 7435 | "message": "Expression has type \"Any\"",
|
7436 |
| - "offset": 8, |
| 7436 | + "offset": 17, |
7437 | 7437 | "src": "parse_config_file(options, set_strict_flags, config_file, stdout, stderr)",
|
7438 | 7438 | "target": "mypy.main.process_options"
|
7439 | 7439 | },
|
| 7440 | + { |
| 7441 | + "code": "no-any-expr", |
| 7442 | + "column": 7, |
| 7443 | + "message": "Expression has type \"Any\"", |
| 7444 | + "offset": 4, |
| 7445 | + "src": "if dummy.ide:", |
| 7446 | + "target": "mypy.main.process_options" |
| 7447 | + }, |
7440 | 7448 | {
|
7441 | 7449 | "code": "no-any-expr",
|
7442 | 7450 | "column": 29,
|
7443 | 7451 | "message": "Expression has type \"Any\"",
|
7444 |
| - "offset": 14, |
| 7452 | + "offset": 15, |
7445 | 7453 | "src": "options.python_version = special_opts.python_version or options.python_version",
|
7446 | 7454 | "target": "mypy.main.process_options"
|
7447 | 7455 | },
|
|
8707 | 8715 | "src": "return repr(self)",
|
8708 | 8716 | "target": "mypy.nodes.Node.__str__"
|
8709 | 8717 | },
|
| 8718 | + { |
| 8719 | + "code": "unreachable", |
| 8720 | + "column": 12, |
| 8721 | + "message": "See https://kotlinisland.github.io/basedmypy/_refs.html#code-unreachable for more info", |
| 8722 | + "offset": 0, |
| 8723 | + "src": "return repr(self)", |
| 8724 | + "target": null |
| 8725 | + }, |
8710 | 8726 | {
|
8711 | 8727 | "code": "no-any-expr",
|
8712 | 8728 | "column": 15,
|
|
9249 | 9265 | "code": "no-any-expr",
|
9250 | 9266 | "column": 18,
|
9251 | 9267 | "message": "Expression has type \"Any\"",
|
9252 |
| - "offset": 111, |
| 9268 | + "offset": 122, |
9253 | 9269 | "src": "MACHDEP = sysconfig.get_config_var(\"MACHDEP\")",
|
9254 | 9270 | "target": "mypy.options.Options.__init__"
|
9255 | 9271 | },
|
|
9273 | 9289 | "code": "no-any-explicit",
|
9274 | 9290 | "column": 8,
|
9275 | 9291 | "message": "Explicit \"Any\" is not allowed",
|
9276 |
| - "offset": 257, |
| 9292 | + "offset": 258, |
9277 | 9293 | "src": "self.transform_source: Callable[[Any], Any] | None = None",
|
9278 | 9294 | "target": "mypy.options.Options.__init__"
|
9279 | 9295 | },
|
|
9395 | 9411 | "src": "def add_symbol_table_node(self, name: str, stnode: SymbolTableNode) -> Any:",
|
9396 | 9412 | "target": "mypy.plugin"
|
9397 | 9413 | },
|
| 9414 | + { |
| 9415 | + "code": "no-any-decorated", |
| 9416 | + "column": 4, |
| 9417 | + "message": "See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-decorated for more info", |
| 9418 | + "offset": 0, |
| 9419 | + "src": "def add_symbol_table_node(self, name: str, stnode: SymbolTableNode) -> Any:", |
| 9420 | + "target": null |
| 9421 | + }, |
9398 | 9422 | {
|
9399 | 9423 | "code": "no-any-explicit",
|
9400 | 9424 | "column": 4,
|
|
11035 | 11059 | "src": "self.__dict__[\"_standard_namespace\"] = standard_namespace",
|
11036 | 11060 | "target": "mypy.split_namespace.SplitNamespace.__init__"
|
11037 | 11061 | },
|
| 11062 | + { |
| 11063 | + "code": "no-any-expr", |
| 11064 | + "column": 8, |
| 11065 | + "message": "See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-expr for more info", |
| 11066 | + "offset": 0, |
| 11067 | + "src": "self.__dict__[\"_standard_namespace\"] = standard_namespace", |
| 11068 | + "target": null |
| 11069 | + }, |
11038 | 11070 | {
|
11039 | 11071 | "code": "no-any-expr",
|
11040 | 11072 | "column": 8,
|
|
11059 | 11091 | "src": "def _get(self) -> tuple[Any, Any]:",
|
11060 | 11092 | "target": "mypy.split_namespace.SplitNamespace._get"
|
11061 | 11093 | },
|
| 11094 | + { |
| 11095 | + "code": "no-any-explicit", |
| 11096 | + "column": 4, |
| 11097 | + "message": "See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-any-explicit for more info", |
| 11098 | + "offset": 0, |
| 11099 | + "src": "def _get(self) -> tuple[Any, Any]:", |
| 11100 | + "target": null |
| 11101 | + }, |
11062 | 11102 | {
|
11063 | 11103 | "code": "no-any-expr",
|
11064 | 11104 | "column": 15,
|
|
12605 | 12645 | "src": "if module:",
|
12606 | 12646 | "target": "mypy.stubgenc.strip_or_import"
|
12607 | 12647 | },
|
| 12648 | + { |
| 12649 | + "code": "truthy-bool", |
| 12650 | + "column": 7, |
| 12651 | + "message": "See https://kotlinisland.github.io/basedmypy/_refs.html#code-truthy-bool for more info", |
| 12652 | + "offset": 0, |
| 12653 | + "src": "if module:", |
| 12654 | + "target": null |
| 12655 | + }, |
12608 | 12656 | {
|
12609 | 12657 | "code": "no-any-expr",
|
12610 | 12658 | "column": 8,
|
|
12661 | 12709 | "src": "if arg_module not in local_modules:",
|
12662 | 12710 | "target": "mypy.stubgenc"
|
12663 | 12711 | },
|
| 12712 | + { |
| 12713 | + "code": "possibly-undefined", |
| 12714 | + "column": 11, |
| 12715 | + "message": "See https://kotlinisland.github.io/basedmypy/_refs.html#code-possibly-undefined for more info", |
| 12716 | + "offset": 0, |
| 12717 | + "src": "if arg_module not in local_modules:", |
| 12718 | + "target": null |
| 12719 | + }, |
12664 | 12720 | {
|
12665 | 12721 | "code": "no-any-expr",
|
12666 | 12722 | "column": 31,
|
|
15133 | 15189 | "src": "suite = parent.obj()",
|
15134 | 15190 | "target": "mypy.test.data.DataDrivenTestCase.runtest"
|
15135 | 15191 | },
|
| 15192 | + { |
| 15193 | + "code": "no-untyped-usage", |
| 15194 | + "column": 8, |
| 15195 | + "message": "See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-untyped-usage for more info", |
| 15196 | + "offset": 0, |
| 15197 | + "src": "suite = parent.obj()", |
| 15198 | + "target": null |
| 15199 | + }, |
15136 | 15200 | {
|
15137 | 15201 | "code": "no-any-expr",
|
15138 | 15202 | "column": 16,
|
|
15587 | 15651 | "code": "no-any-expr",
|
15588 | 15652 | "column": 7,
|
15589 | 15653 | "message": "Expression has type \"Untyped\"",
|
15590 |
| - "offset": 111, |
| 15654 | + "offset": 115, |
15591 | 15655 | "src": "if testcase.config.getoption(\"--mypy-verbose\"):",
|
15592 | 15656 | "target": "mypy.test.helpers.parse_options"
|
15593 | 15657 | },
|
|
15729 | 15793 | "code": "no-any-expr",
|
15730 | 15794 | "column": 13,
|
15731 | 15795 | "message": "Expression type contains \"Any\" (has type \"int | Any\")",
|
15732 |
| - "offset": 48, |
| 15796 | + "offset": 52, |
15733 | 15797 | "src": "result = process.returncode",
|
15734 | 15798 | "target": "mypy.test.testcmdline.test_python_cmdline"
|
15735 | 15799 | },
|
|
16211 | 16275 | "code": "possibly-undefined",
|
16212 | 16276 | "column": 22,
|
16213 | 16277 | "message": "Name \"program\" may be undefined",
|
16214 |
| - "offset": 162, |
| 16278 | + "offset": 170, |
16215 | 16279 | "src": "os.remove(program)",
|
16216 | 16280 | "target": "mypy.test.testpep561"
|
16217 | 16281 | },
|
|
16385 | 16449 | "code": "no-any-explicit",
|
16386 | 16450 | "column": 0,
|
16387 | 16451 | "message": "Explicit \"Any\" is not allowed",
|
16388 |
| - "offset": 142, |
| 16452 | + "offset": 144, |
16389 | 16453 | "src": "def collect_cases(fn: Callable[..., Iterator[Case]]) -> Callable[..., None]:",
|
16390 | 16454 | "target": "mypy.test.teststubtest.collect_cases"
|
16391 | 16455 | },
|
|
18933 | 18997 | "src": "def visit_mypy_file(self, o: mypy.nodes.MypyFile) -> T:",
|
18934 | 18998 | "target": "mypy.visitor.NodeVisitor.visit_mypy_file"
|
18935 | 18999 | },
|
| 19000 | + { |
| 19001 | + "code": "empty-body", |
| 19002 | + "column": 4, |
| 19003 | + "message": "See https://kotlinisland.github.io/basedmypy/_refs.html#code-empty-body for more info", |
| 19004 | + "offset": 0, |
| 19005 | + "src": "def visit_mypy_file(self, o: mypy.nodes.MypyFile) -> T:", |
| 19006 | + "target": null |
| 19007 | + }, |
18936 | 19008 | {
|
18937 | 19009 | "code": "empty-body",
|
18938 | 19010 | "column": 4,
|
|
22129 | 22201 | "code": "no-any-expr",
|
22130 | 22202 | "column": 7,
|
22131 | 22203 | "message": "Expression type contains \"Any\" (has type \"False | Untyped\")",
|
22132 |
| - "offset": 95, |
| 22204 | + "offset": 96, |
22133 | 22205 | "src": "if expected_output != actual and testcase.config.getoption(\"--update-data\", False):",
|
22134 | 22206 | "target": "mypyc.test.testutil.assert_test_output"
|
22135 | 22207 | },
|
|
0 commit comments