ruff/scripts/ty_benchmark/snapshots/jinja_Pyrefly.txt

70 lines
9.3 KiB
Plaintext

ERROR src/jinja2/async_utils.py:93:45-55: No matching overload found for function `iter` called with arguments: (AsyncIterable[V] | Iterable[V]) [no-matching-overload]
ERROR src/jinja2/compiler.py:221:9-19: Object of class `object` has no attribute `symbols` [missing-attribute]
ERROR src/jinja2/compiler.py:222:16-18: Returned type `object` is not assignable to declared return type `Self@Frame` [bad-return]
ERROR src/jinja2/compiler.py:1257:27-43: `loop_filter_func` may be uninitialized [unbound-name]
ERROR src/jinja2/compiler.py:1280:31-50: `iteration_indicator` may be uninitialized [unbound-name]
ERROR src/jinja2/compiler.py:1287:34-53: `iteration_indicator` may be uninitialized [unbound-name]
ERROR src/jinja2/compiler.py:1421:18-1423:14: No matching overload found for function `dict.get` called with arguments: (_PassArg | None) [no-matching-overload]
ERROR src/jinja2/compiler.py:1534:17-32: Object of class `Expr` has no attribute `append` [missing-attribute]
ERROR src/jinja2/compiler.py:1813:14-1815:10: No matching overload found for function `dict.get` called with arguments: (_PassArg | None) [no-matching-overload]
ERROR src/jinja2/debug.py:78:6-19: Function declared to return `TracebackType`, but one or more paths are missing an explicit `return` [bad-return]
ERROR src/jinja2/environment.py:352:14-21: Attribute `filters` cannot depend on type variable `V`, which is not in the scope of class `Environment` [invalid-type-var]
ERROR src/jinja2/environment.py:352:14-21: Attribute `filters` cannot depend on type variable `K`, which is not in the scope of class `Environment` [invalid-type-var]
ERROR src/jinja2/environment.py:352:14-21: Attribute `filters` cannot depend on type variable `_T`, which is not in the scope of class `Environment` [invalid-type-var]
ERROR src/jinja2/environment.py:435:9-21: Object of class `object` has no attribute `overlayed` [missing-attribute]
ERROR src/jinja2/environment.py:436:9-21: Object of class `object` has no attribute `linked_to` [missing-attribute]
ERROR src/jinja2/environment.py:443:13-21: Object of class `object` has no attribute `cache` [missing-attribute]
ERROR src/jinja2/environment.py:445:13-21: Object of class `object` has no attribute `cache` [missing-attribute]
ERROR src/jinja2/environment.py:447:9-22: Object of class `object` has no attribute `extensions` [missing-attribute]
ERROR src/jinja2/environment.py:449:13-26: Object of class `object` has no attribute `extensions` [missing-attribute]
ERROR src/jinja2/environment.py:449:45-47: Argument `object` is not assignable to parameter `environment` with type `Environment` in function `jinja2.ext.Extension.bind` [bad-argument-type]
ERROR src/jinja2/environment.py:451:13-26: Object of class `object` has no attribute `extensions` [missing-attribute]
ERROR src/jinja2/environment.py:451:50-52: Argument `object` is not assignable to parameter `environment` with type `Environment` in function `load_extensions` [bad-argument-type]
ERROR src/jinja2/environment.py:454:13-24: Object of class `object` has no attribute `is_async` [missing-attribute]
ERROR src/jinja2/environment.py:456:42-44: Argument `object` is not assignable to parameter `environment` with type `Self@Environment` in function `_environment_config_check` [bad-argument-type]
ERROR src/jinja2/environment.py:813:61-65: `expr` may be uninitialized [unbound-name]
ERROR src/jinja2/environment.py:894:17-25: `zip_file` may be uninitialized [unbound-name]
ERROR src/jinja2/environment.py:928:37-70: `in` is not supported between `str` and `None` [not-iterable]
ERROR src/jinja2/environment.py:1084:38-59: Argument `(Template & Undefined) | (Undefined & list[Template | str]) | str` is not assignable to parameter `name` with type `Template | str` in function `Environment.get_template` [bad-argument-type]
ERROR src/jinja2/environment.py:1251:23-42: `object` is not assignable to `Template` [bad-assignment]
ERROR src/jinja2/environment.py:1496:20-1499:14: Returned type `list[tuple[int, ...]]` is not assignable to declared return type `list[tuple[int, int]]` [bad-return]
ERROR src/jinja2/environment.py:1548:20-39: Instance-only attribute `__name__` of class `TemplateModule` is not visible on the class [missing-attribute]
ERROR src/jinja2/environment.py:1617:35-45: No matching overload found for function `typing.IO.writelines` called with arguments: (Generator[bytes, None, None] | Self@TemplateStream) [no-matching-overload]
ERROR src/jinja2/environment.py:1620:34-40: No matching overload found for function `typing.IO.write` called with arguments: (bytes | str) [no-matching-overload]
ERROR src/jinja2/exceptions.py:43:23-27: `Undefined | str | None` is not assignable to variable `message` with type `str | None` [bad-assignment]
ERROR src/jinja2/ext.py:30:67-70: Function declared to return `str` but is missing an explicit `return` [bad-return]
ERROR src/jinja2/ext.py:96:9-23: Object of class `object` has no attribute `environment` [missing-attribute]
ERROR src/jinja2/ext.py:97:16-18: Returned type `object` is not assignable to declared return type `Self@Extension` [bad-return]
ERROR src/jinja2/ext.py:258:36-50: Cannot set item in `dict[str, ((n: int = 5, html: bool = True, min: int = 20, max: int = 100) -> str) | type[Cycler] | type[Joiner] | type[Namespace] | type[dict] | type[range]]` [unsupported-operation]
ERROR src/jinja2/ext.py:318:40-320:10: No matching overload found for function `typing.MutableMapping.update` called with arguments: (gettext=((str) -> str) | ((...) -> str), ngettext=((str, str, int) -> str) | ((...) -> str), pgettext=((str, str) -> str) | ((...) -> str) | None, npgettext=((str, str, str, int) -> str) | ((...) -> str) | None) [no-matching-overload]
ERROR src/jinja2/filters.py:40:31-34: Function declared to return `str` but is missing an explicit `return` [bad-return]
ERROR src/jinja2/filters.py:120:13-21: Cannot set item in `list[None]` [unsupported-operation]
ERROR src/jinja2/filters.py:165:56-68: Runtime checkable protocol `Iterable` has an unsafe overlap with type `Iterable[tuple[str, Any]] | Mapping[str, Any]` [invalid-argument]
ERROR src/jinja2/filters.py:169:48-61: `dict_items[tuple[str, Any], Unknown]` is not assignable to `Iterable[tuple[str, Any]]` [bad-assignment]
ERROR src/jinja2/filters.py:308:22-56: Argument `str` is not assignable to parameter `object` with type `LiteralString` in function `list.append` [bad-argument-type]
ERROR src/jinja2/filters.py:730:34-38: `unit` may be uninitialized [unbound-name]
ERROR src/jinja2/filters.py:1352:9-25: `+=` is not supported between `V` and `V` [unsupported-operation]
ERROR src/jinja2/idtracking.py:90:9-16: Object of class `object` has no attribute `refs` [missing-attribute]
ERROR src/jinja2/idtracking.py:91:9-17: Object of class `object` has no attribute `loads` [missing-attribute]
ERROR src/jinja2/idtracking.py:92:9-18: Object of class `object` has no attribute `stores` [missing-attribute]
ERROR src/jinja2/idtracking.py:93:16-18: Returned type `object` is not assignable to declared return type `Self@Symbols` [bad-return]
ERROR src/jinja2/lexer.py:816:31-51: Type of yielded value `tuple[Literal[1], str | tuple[str, ...], str]` is not assignable to declared return type `tuple[int, str, str]` [invalid-yield]
ERROR src/jinja2/loaders.py:143:32-38: `bucket` may be uninitialized [unbound-name]
ERROR src/jinja2/loaders.py:144:13-19: `bucket` may be uninitialized [unbound-name]
ERROR src/jinja2/loaders.py:145:28-34: `bucket` may be uninitialized [unbound-name]
ERROR src/jinja2/meta.py:79:30-40: Argument `tuple[type[Extends], type[FromImport], type[Import], type[Include]]` is not assignable to parameter `node_type` with type `tuple[type[Extends], ...] | type[Extends]` in function `jinja2.nodes.Node.find_all` [bad-argument-type]
ERROR src/jinja2/parser.py:160:29-31: Argument `object` is not assignable to parameter `self` with type `Node` in function `jinja2.nodes.Node.__init__` [bad-argument-type]
ERROR src/jinja2/parser.py:161:16-18: Returned type `object` is not assignable to declared return type `InternalName` [bad-return]
ERROR src/jinja2/parser.py:429:21-30: `Expr` is not assignable to attribute `call` with type `Call` [bad-assignment]
ERROR src/jinja2/parser.py:679:16-20: `node` may be uninitialized [unbound-name]
ERROR src/jinja2/parser.py:885:9-917:33: `Expr | None` is not assignable to `None` (caused by inconsistent types when breaking cycles) [bad-assignment]
ERROR src/jinja2/runtime.py:82:20-23: Argument `str` is not assignable to parameter `object` with type `LiteralString` in function `list.append` [bad-argument-type]
ERROR src/jinja2/runtime.py:144:2-22: Class `Mapping` has no class attribute `register` [missing-attribute]
ERROR src/jinja2/runtime.py:423:14-23: Attribute `_iterable` cannot depend on type variable `V`, which is not in the scope of class `LoopContext` [invalid-type-var]
ERROR src/jinja2/runtime.py:424:14-23: Attribute `_iterator` cannot depend on type variable `V`, which is not in the scope of class `LoopContext` [invalid-type-var]
ERROR src/jinja2/sandbox.py:244:33-43: Cannot set item in `dict[str, ((n: int = 5, html: bool = True, min: int = 20, max: int = 100) -> str) | type[Cycler] | type[Joiner] | type[Namespace] | type[dict] | type[range]]` [unsupported-operation]
ERROR src/jinja2/utils.py:271:16-39: `>` is not supported between `int` and `None` [unsupported-operation]
ERROR src/jinja2/utils.py:431:2-29: Class `MutableMapping` has no class attribute `register` [missing-attribute]
INFO Checking project configured at `<CWD>/pyrefly.toml`
INFO 67 errors (78 suppressed)