Anders Kaseorg
Anders Kaseorg
In Nix `''\` may be followed by [any character](https://nixos.org/manual/nix/stable/language/values.html#type-string), not just `n`/`r`/`t`: > Linefeed, carriage-return and tab characters can be written as `''\n`, `''\r`, `''\t`, and `''\` escapes any other...
### Did you check existing issues? - [X] I have read all the [tree-sitter docs](https://tree-sitter.github.io/tree-sitter/using-parsers) if it relates to using the parser - [X] I have searched the existing issues...
Currently no violations are flagged for `function f() { function g() { return this; } }`. We should fix this to `const f = () => { function g() {...
This rule auto-fixes `f || function () {}` to `f || () => {}`, which is syntactically invalid. Since an arrow function has lower [precedence](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_precedence) than a `function` expression, the...
The TypeScript compiler parses the [non-null assertion operator `!`](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#non-null-assertion-operator-postfix-) with precedence higher than `new`, but ast-grep incorrectly parses it with precedence lower than `||` and `??`. # ⏯ Playground Link...
# Trac ticket number ticket-30448 ticket-35618 # Branch description Previously, the `django.db.close_old_connections` handler for `request_started` and `request_finished` would incorrectly close any connection within a `transaction.atomic` block (such as the one...
In 5.0.3, the value of a [`GenericRelation`](https://docs.djangoproject.com/en/5.0/ref/contrib/contenttypes/#django.contrib.contenttypes.fields.GenericRelation) field is given the useless type `_ST` (an unbound type variable), and trying to do anything with it gives errors like `error: "_ST"...
```py from django.db import models class Blog(models.Model): pass class Entry(models.Model): blog = models.ForeignKey(Blog, on_delete=models.CASCADE) def test() -> None: Blog.objects.alias(entries=models.Count("entry")).filter(entries__gt=5) ``` ``` my_app/models.py:13: error: Cannot resolve keyword 'entries' into field. Choices...
Adding `"-g0"` to `extra_compile_args` in `setup.py` reduces the Linux `.whl` size from 7.2 MB to 3.3 MB. Related: - pypa/cibuildwheel#331
## Description - Fixes #9966. ``` In file included from /build/source/build/src/mozillavpn_autogen/UM7GZO45JR/../../../../src/platforms/linux/daemon/dnsutilslinux.h:12, from /build/source/build/src/mozillavpn_autogen/UM7GZO45JR/../../../../src/platforms/linux/daemon/dbusservice.h:13, from /build/source/build/src/mozillavpn_autogen/UM7GZO45JR/moc_dbusservice.cpp:9, from /build/source/build/src/mozillavpn_autogen/mocs_compilation.cpp:88: /build/source/build/src/mozillavpn_autogen/UM7GZO45JR/../../../../src/platforms/linux/daemon/dbustypeslinux.h: In function 'const QDBusArgument& operator>>(const QDBusArgument&, DnsResolver&)': /build/source/build/src/mozillavpn_autogen/UM7GZO45JR/../../../../src/platforms/linux/daemon/dbustypeslinux.h:49:26: error: 'qsizetype QByteArray::count() const'...