DetachHead

Results 929 comments of DetachHead

another issue i ran into is that there doesn't seem to be any way to use `assert_type` with a function type: ```py def foo() -> None: ... assert_type(foo, Callable[[], None])...

upstream issue: https://github.com/microsoft/pyright/issues/11007

thanks so much for the for the detailed explanation! for the record i guessed correctly what would happen in that example but i never really considered that behavior to be...

hmm, it looks like it does work when running a normal script, but not when running a test with `deno test`: ```ts // test.ts import { main, action } from...

yeah that sounds good!

I'm in Australia. Assuming you're in Texas as it says on your profile, I can potentially do this Monday or Tuesday morning (Sunday or Monday night for you)

Sorry I won't be available for the next few days, Monday or Tuesday were the only days I had free this week. I will be available any day from the...

note that this is "implementing" the protocol not "extending" it, which is different, see https://github.com/DetachHead/basedpyright/issues/294#issuecomment-2611489040

it doesn't just happen with `Unpack` Code sample in [basedpyright playground](https://basedpyright.com/?pythonVersion=3.13&typeCheckingMode=standard&code=GYJw9gtgBALgngBwJYDsDmUkQWEMoAqiApgCYAiSAxjAFC1UA2AhgM6tQAKxIrYKACiIIylGgEoAXLSiyoKZhGKSorGCBlyARDoIALYvMWGwwWAagje-AHQ6tm2czTLMKOnKj39h5ybMwFlZ8KHY69MH8UAC8XDwhAgpK0VoAUmB6KFoANFB%2B0QDMAAziEfH8ANoA5H5VALpQAMTyYFCkYFRqIKgYUXpgAG48QA) ```python from typing import TypedDict class Person(TypedDict): name: str """The name of the person.""" age: int """The age of...