DetachHead

Results 929 comments of DetachHead

i really think this issue needs to be addressed. jest's assertion library is used by many other testing tools, so this problem comes up in many different places. > Usually...

> Changes in this repo will have no effect on Playwright’s `.toBe()` typings, because they keep a hard copy here: i mean it won't have an immediate effect but if...

as a workaround, i've fixed this with semantic highlighting in [basedpyright](https://github.com/detachhead/basedpyright): ![image](https://github.com/MagicStack/MagicPython/assets/57028336/3767bfb5-3bc2-458a-93ff-e9f0845633e5) though i'm not sure how to make it blue (or if it even should be blue). https://github.com/DetachHead/basedpyright/issues/147

here's a more minimal example: ```py def foo() -> None: _ = 1 assert _ == 1 # error ```

@hauntsaninja i have that rule enabled. the problem is that it doesn't detect it if you're importing a possibly undefined variable from another file, like in my example.

it shouldn't be reusing the same ignore comments that other linters use in the first place

@eymar this workaround doesn't seem to work anymore. it works on the initial load but resizing the window causes it to crash. seems to be caused by accessing the internal...